don't bother hiding if we're not visible

This commit is contained in:
Aaron Seigo 2011-08-03 16:42:51 +02:00 committed by David Faure
parent 9e314fde8d
commit 575057e878

View File

@ -753,6 +753,10 @@ Dialog::ResizeCorners Dialog::resizeCorners() const
void Dialog::animatedHide(Plasma::Direction direction)
{
if (!isVisible()) {
return;
}
if (!KWindowSystem::compositingActive()) {
hide();
return;