[rkward-cvs] SF.net SVN: rkward:[3550] trunk/rkward/rkward/windows/rkworkplaceview.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu May 12 10:39:57 UTC 2011


Revision: 3550
          http://rkward.svn.sourceforge.net/rkward/?rev=3550&view=rev
Author:   tfry
Date:     2011-05-12 10:39:57 +0000 (Thu, 12 May 2011)

Log Message:
-----------
Actually this is not longer needed at all, since Qt4 will already emit currentChanged(-1) when the last page is removed.

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkworkplaceview.cpp

Modified: trunk/rkward/rkward/windows/rkworkplaceview.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkworkplaceview.cpp	2011-05-12 10:27:30 UTC (rev 3549)
+++ trunk/rkward/rkward/windows/rkworkplaceview.cpp	2011-05-12 10:39:57 UTC (rev 3550)
@@ -146,13 +146,7 @@
 	if (!destroyed) disconnect (widget, SIGNAL (captionChanged (RKMDIWindow *)), this, SLOT (childCaptionChanged (RKMDIWindow *)));
 
 	removeTab (id);
-	int new_count = count ();
-	if (new_count <= 1) {
-		setTabBarHidden (true);
-		if (new_count < 1) {
-			currentPageChanged (-1);
-		}
-	}
+	if (count () <= 1) setTabBarHidden (true);
 }
 
 // KDE4 TODO: we can use setCurrentWidget, instead.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list