[Bug 73045] switching docks when no file is loaded crash kdevelop

Lukas Tinkl lukas at kde.org
Wed Jan 28 18:35:10 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=73045      




------- Additional Comments From lukas at kde.org  2004-01-28 18:34 -------
Subject: KDE_3_2_BRANCH: kdelibs/kmdi

CVS commit by lukas: 

backport for crash in #73045

CCMAIL: 73045 at bugs.kde.org


  M +101 -101  kmdidockcontainer.cpp   1.54.2.1


--- kdelibs/kmdi/kmdidockcontainer.cpp  #1.54:1.54.2.1
@@ -613,5 +613,5 @@ void KMdiDockContainer::toggle() {
                 tabClicked(oldtab);
                 KMdiMainFrm *mainFrm = dynamic_cast<KMdiMainFrm*>(m_mainWin);
-                if (mainFrm)
+            if (mainFrm && mainFrm->activeWindow() )
                     mainFrm->activeWindow()->setFocus();




More information about the KDevelop-devel mailing list