[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdevplatform/sublime
From:       Milian Wolff <mail () milianw ! de>
Date:       2009-10-28 0:35:21
Message-ID: 1256690121.437204.10151.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1041436 by mwolff:

don't crash when all docks from a dockbar get removed and the user selects 'previous tool view' action

 M  +5 -0      ideal.cpp  


--- trunk/KDE/kdevplatform/sublime/ideal.cpp #1041435:1041436
@@ -1028,6 +1028,11 @@
 
     IdealButtonBarWidget* bar = barForRole(role);
 
+    if ( bar->actions().isEmpty() ) {
+        // happens when all docks in a bar get removed
+        return;
+    }
+
     int index = bar->actions().indexOf(m_dockwidget_to_action.value(dock));
 
     if (index < 1)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic