Summary: | cleanup layout (default) shortcut would be nice | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Matthew Truch <matt> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Matthew Truch
2005-08-21 02:48:31 UTC
Is there any reason not to display the Cleanup Layout menu item at all times (i.e. not just in Layout mode)? If there are no reasons as to why this is a bad thing to do I'll simply delete two lines of code from ksttoplevelview.cpp. I agree that it would be good to have it everywhere. 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... |