diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-11 03:03:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-11 03:03:53 +0300 |
commit | dd5a317dbfdb24d905ade4ebea458e370619f61f (patch) | |
tree | 85287ebf514aced1106d0b25744ba0a580659f28 /src/gui/popupmenu.cpp | |
parent | 22c81087c05cf216c8ab0ff29c82677db96e9ed7 (diff) | |
download | manaplus-dd5a317dbfdb24d905ade4ebea458e370619f61f.tar.gz manaplus-dd5a317dbfdb24d905ade4ebea458e370619f61f.tar.bz2 manaplus-dd5a317dbfdb24d905ade4ebea458e370619f61f.tar.xz manaplus-dd5a317dbfdb24d905ade4ebea458e370619f61f.zip |
Save whisper tabs state to configuration after each change.
Before was only after correct game disconnect.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 79618ad04..9cf9e536e 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -1245,26 +1245,38 @@ void PopupMenu::handleLink(const std::string &link, else if (link == "enable highlight" && mTab) { mTab->setAllowHighlight(true); + if (chatWindow) + chatWindow->saveState(); } else if (link == "disable highlight" && mTab) { mTab->setAllowHighlight(false); + if (chatWindow) + chatWindow->saveState(); } else if (link == "dont remove name" && mTab) { mTab->setRemoveNames(false); + if (chatWindow) + chatWindow->saveState(); } else if (link == "remove name" && mTab) { mTab->setRemoveNames(true); + if (chatWindow) + chatWindow->saveState(); } else if (link == "disable away" && mTab) { mTab->setNoAway(true); + if (chatWindow) + chatWindow->saveState(); } else if (link == "enable away" && mTab) { mTab->setNoAway(false); + if (chatWindow) + chatWindow->saveState(); } else if (link == "remove attack" && being) { |