]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix crash with tool tips enabled
authorChristoph Feck <christoph@maxiom.de>
Tue, 8 Dec 2009 01:32:20 +0000 (01:32 +0000)
committerChristoph Feck <christoph@maxiom.de>
Tue, 8 Dec 2009 01:32:20 +0000 (01:32 +0000)
Do not delete window inside the event handling, causing crashes with
queued events for the tool tip window.

This is the same fix that had been applied to systemsettings.

BUG: 217449

svn path=/trunk/KDE/kdebase/apps/; revision=1060080

src/tooltips/ktooltip.cpp

index d0da7983b56c833762b45cdcbd094bbe1a86f009..99114106fe70fc88ff9785621aa2db16fbc28e0a 100644 (file)
@@ -75,7 +75,7 @@ void KToolTipManager::hideTip()
 {
     if (m_window != 0) {
         m_window->hide();
-        delete m_window;
+        m_window->deleteLater();
         m_window = 0;
     }
 }