[Kst] [Bug 111176] cleanup layout (default) shortcut would be nice
Andrew Walker
arwalker at sumusltd.com
Thu Oct 20 19:15:09 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=111176
arwalker sumusltd com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From arwalker sumusltd com 2005-10-20 19:15 -------
SVN commit 472410 by arwalker:
BUG:111176 Enable the Cleanup Layout menu item in all modes.
M +7 -9 ksttoplevelview.cpp
--- trunk/extragear/graphics/kst/kst/ksttoplevelview.cpp #472409:472410
@ -1161,16 +1161,14 @
rc = true;
}
- if (_mode == LayoutMode) {
- if (rc) {
- menu->insertSeparator();
- }
- KPopupMenu *subMenu = new KPopupMenu(menu);
- subMenu->insertItem(i18n("Default Tile"), this, SLOT(cleanupDefault()));
- subMenu->insertItem(i18n("Custom..."), this, SLOT(cleanupCustom()));
- menu->insertItem(i18n("Cleanup Layout"), subMenu);
- rc = true;
+ if (rc) {
+ menu->insertSeparator();
}
+ KPopupMenu *subMenu = new KPopupMenu(menu);
+ subMenu->insertItem(i18n("Default Tile"), this, SLOT(cleanupDefault()));
+ subMenu->insertItem(i18n("Custom..."), this, SLOT(cleanupCustom()));
+ menu->insertItem(i18n("Cleanup Layout"), subMenu);
+ rc = true;
// don't release the _pressTarget reference here as we are not yet done with
// it, since several of the menu handlers require it in order to function...
More information about the Kst
mailing list