be a little more paranoid about setting the info.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=771449
This commit is contained in:
Aaron J. Seigo 2008-02-06 01:25:59 +00:00
parent 476eb885cb
commit 462c52af51

View File

@ -141,8 +141,13 @@ void ToolTip::showToolTip()
}
layout()->activate();
if (isVisible()) {
d->preview->setInfo();
} else {
setVisible(true);
}
d->isShown = true; //ToolTip is visible
setVisible(true);
resize(sizeHint());
move(d->currentWidget->popupPosition(size()));
}