From 52f1975a113117cb0a2f128bca8c4ffa2e23e102 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 7 Sep 2002 10:21:27 +0000 Subject: fixed save workspace names when adding/removing workspace --- src/Workspacemenu.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Workspacemenu.cc b/src/Workspacemenu.cc index 16802f6..134da20 100644 --- a/src/Workspacemenu.cc +++ b/src/Workspacemenu.cc @@ -21,7 +21,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Workspacemenu.cc,v 1.8 2002/08/14 22:57:55 fluxgen Exp $ +// $Id: Workspacemenu.cc,v 1.9 2002/09/07 10:21:27 fluxgen Exp $ #include "Workspacemenu.hh" @@ -60,11 +60,13 @@ Workspacemenu::Workspacemenu(BScreen *scrn) : Basemenu(scrn) { void Workspacemenu::itemSelected(int button, unsigned int index) { if (button == 1) { - if (index == 0) + if (index == 0) { screen()->addWorkspace(); - else if (index == 1) + Fluxbox::instance()->save_rc(); + } else if (index == 1) { screen()->removeLastWorkspace(); - else if ((screen()->getCurrentWorkspace()->workspaceID() != + Fluxbox::instance()->save_rc(); + } else if ((screen()->getCurrentWorkspace()->workspaceID() != (index - 2)) && ((index - 2) < screen()->getCount())) { screen()->changeWorkspaceID(index - 2); } -- cgit v0.11.2