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

List:       kde-commits
Subject:    KDE/kdevplatform/sublime
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2009-07-26 13:17:09
Message-ID: 1248614229.444990.10401.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1002578 by zwabel:

Only show one area-tab for each area-name. Fixes the problem that additional \
main-windows showed more and more area tabs with each opened+closed window.


 M  +7 -0      mainwindow.cpp  


--- trunk/KDE/kdevplatform/sublime/mainwindow.cpp #1002577:1002578
@@ -69,9 +69,16 @@
     if(areas.isEmpty())
         areas = controller()->defaultAreas();
     
+    QSet<QString> hadAreaName;
+    
     for(int a = 0; a < areas.size(); ++a) {
         Area* theArea = areas[a];
         
+        if(hadAreaName.contains(theArea->objectName()))
+            continue;
+        
+        hadAreaName.insert(theArea->objectName());
+        
         if(theArea->objectName() == area()->objectName()) {
             currentIndex = a;
         }


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

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