diff options
author | rathnor <rathnor> | 2003-03-23 05:07:03 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-03-23 05:07:03 (GMT) |
commit | fdf611064ed965d308e275f188fe2a626c7f21a9 (patch) | |
tree | f7e17f31b8bdbe0c15b18c0a8a07765d237e6110 | |
parent | 227e0b0ab1c5bf6f5f78a26ae293ecd09d1ccc30 (diff) | |
download | fluxbox_pavel-fdf611064ed965d308e275f188fe2a626c7f21a9.zip fluxbox_pavel-fdf611064ed965d308e275f188fe2a626c7f21a9.tar.bz2 |
fixed bug for when toolbar is off
-rw-r--r-- | src/ToolbarHandler.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ToolbarHandler.cc b/src/ToolbarHandler.cc index 7e31e65..26f601d 100644 --- a/src/ToolbarHandler.cc +++ b/src/ToolbarHandler.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: ToolbarHandler.cc,v 1.3 2003/03/10 22:25:18 rathnor Exp $ | 23 | // $Id: ToolbarHandler.cc,v 1.4 2003/03/23 05:07:03 rathnor Exp $ |
24 | 24 | ||
25 | /** | 25 | /** |
26 | * The ToolbarHandler class acts as a rough interface to the toolbar. | 26 | * The ToolbarHandler class acts as a rough interface to the toolbar. |
@@ -101,6 +101,7 @@ ToolbarHandler::ToolbarHandler(BScreen &screen, ToolbarMode mode) | |||
101 | void ToolbarHandler::setMode(ToolbarMode mode, bool initialise) { | 101 | void ToolbarHandler::setMode(ToolbarMode mode, bool initialise) { |
102 | if (mode < 0 || mode >= LASTMODE || (mode == m_mode && initialise)) return; | 102 | if (mode < 0 || mode >= LASTMODE || (mode == m_mode && initialise)) return; |
103 | if (mode == OFF) { | 103 | if (mode == OFF) { |
104 | m_mode = mode; | ||
104 | m_toolbarmenu.removeAll(); | 105 | m_toolbarmenu.removeAll(); |
105 | //TODO: nls | 106 | //TODO: nls |
106 | m_toolbarmenu.insert("Mode...", &m_modemenu); | 107 | m_toolbarmenu.insert("Mode...", &m_modemenu); |