[Kst] extragear/graphics/kst/src/libkstapp
Andrew Walker
arwalker at sumusltd.com
Mon May 15 22:39:26 CEST 2006
SVN commit 541266 by arwalker:
Only display Expand/Collapse View Manager context menu item if appropriate
M +2 -2 kstviewmanager_i.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewmanager_i.cpp #541265:541266
@@ -735,9 +735,9 @@
menu->insertSeparator();
id = menu->insertItem(i18n("Expand"), this, SLOT(open()));
- menu->setItemEnabled(id, !koi->isOpen());
+ menu->setItemEnabled(id, !koi->isOpen() && koi->firstChild());
id = menu->insertItem(i18n("Collapse"), this, SLOT(close()));
- menu->setItemEnabled(id, koi->isOpen());
+ menu->setItemEnabled(id, koi->isOpen() && koi->firstChild());
id = menu->insertItem(i18n("Expand All"), this, SLOT(openAll()));
menu->setItemEnabled(id, koi->firstChild());
id = menu->insertItem(i18n("Collapse All"), this, SLOT(closeAll()));
More information about the Kst
mailing list