Bug 73045 - switching docks when no file is loaded crash kdevelop
Summary: switching docks when no file is loaded crash kdevelop
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
: 70325 75708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-20 18:31 UTC by tnagy
Modified: 2004-11-21 04:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tnagy 2004-01-20 18:31:45 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

Open kdevelop, and do not open any project or file. Try "ctrl+alt+shift+r" two times, kdevelop will crash. This also works with the letters "b" and "r", or in the menu "view"->"tool dock"->"switch left dock", etc.
Comment 1 Jens Dagerbo 2004-01-20 20:16:30 UTC
Subject: kdelibs/kmdi

CVS commit by dagerbo: 

Quck fix for bug: 73045

CCMAIL: 73045-done@bugs.kde.org


  M +101 -101  kmdidockcontainer.cpp   1.55


--- kdelibs/kmdi/kmdidockcontainer.cpp  #1.54:1.55
@@ -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();
 


Comment 2 Jens Dagerbo 2004-01-20 20:17:01 UTC
Should be backported to KDE_3_2_BRANCH.
Comment 3 Jens Dagerbo 2004-01-22 12:20:40 UTC
*** Bug 70325 has been marked as a duplicate of this bug. ***
Comment 4 Lukáš Tinkl 2004-01-28 18:34:24 UTC
Subject: KDE_3_2_BRANCH: kdelibs/kmdi

CVS commit by lukas: 

backport for crash in #73045

CCMAIL: 73045@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();
 


Comment 5 Jens Dagerbo 2004-02-20 23:49:32 UTC
*** Bug 75708 has been marked as a duplicate of this bug. ***