[rkward-cvs] SF.net SVN: rkward:[2785] trunk/rkward/rkward/rkward.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Sun Mar 14 13:08:21 UTC 2010
Revision: 2785
http://rkward.svn.sourceforge.net/rkward/?rev=2785&view=rev
Author: tfry
Date: 2010-03-14 13:08:21 +0000 (Sun, 14 Mar 2010)
Log Message:
-----------
QMenu::isEmpty() does not get fooled by invisible actions
Modified Paths:
--------------
trunk/rkward/rkward/rkward.cpp
Modified: trunk/rkward/rkward/rkward.cpp
===================================================================
--- trunk/rkward/rkward/rkward.cpp 2010-03-11 15:18:24 UTC (rev 2784)
+++ trunk/rkward/rkward/rkward.cpp 2010-03-14 13:08:21 UTC (rev 2785)
@@ -397,11 +397,11 @@
}
QMenu* menu = dynamic_cast<QMenu*>(guiFactory ()->container ("edit", this));
- edit_menu_dummy->setVisible (menu && (menu->actions ().size () <= 1));
+ edit_menu_dummy->setVisible (menu && (menu->isEmpty ()));
menu = dynamic_cast<QMenu*>(guiFactory ()->container ("view", this));
- view_menu_dummy->setVisible (menu && (menu->actions ().size () <= 1));
+ view_menu_dummy->setVisible (menu && (menu->isEmpty ()));
menu = dynamic_cast<QMenu*>(guiFactory ()->container ("run", this));
- run_menu_dummy->setVisible (menu && (menu->actions ().size () <= 1));
+ run_menu_dummy->setVisible (menu && (menu->isEmpty ()));
}
void RKWardMainWindow::initStatusBar () {
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