[rkward-cvs] SF.net SVN: rkward:[3440] trunk/rkward/rkward/rkward.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Feb 16 12:28:03 UTC 2011


Revision: 3440
          http://rkward.svn.sourceforge.net/rkward/?rev=3440&view=rev
Author:   tfry
Date:     2011-02-16 12:28:03 +0000 (Wed, 16 Feb 2011)

Log Message:
-----------
Small fix.

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

Modified: trunk/rkward/rkward/rkward.cpp
===================================================================
--- trunk/rkward/rkward/rkward.cpp	2011-02-16 12:26:27 UTC (rev 3439)
+++ trunk/rkward/rkward/rkward.cpp	2011-02-16 12:28:03 UTC (rev 3440)
@@ -429,7 +429,10 @@
 */
 
 void updateEmptyMenuIndicator (QAction* indicator, const QMenu *menu) {
-	if (!menu) indicator->setVisible (false);
+	if (!menu) {
+		indicator->setVisible (false);
+		return;
+	}
 
 	// NOTE: QMenu::isEmpty () does not work, here
 	QList<QAction *> actions = menu->actions ();
@@ -441,6 +444,7 @@
 			return;
 		}
 	}
+
 	indicator->setVisible (true);
 }
 


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