summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-03-23 05:07:03 (GMT)
committerrathnor <rathnor>2003-03-23 05:07:03 (GMT)
commitfdf611064ed965d308e275f188fe2a626c7f21a9 (patch)
treef7e17f31b8bdbe0c15b18c0a8a07765d237e6110
parent227e0b0ab1c5bf6f5f78a26ae293ecd09d1ccc30 (diff)
downloadfluxbox_lack-fdf611064ed965d308e275f188fe2a626c7f21a9.zip
fluxbox_lack-fdf611064ed965d308e275f188fe2a626c7f21a9.tar.bz2
fixed bug for when toolbar is off
-rw-r--r--src/ToolbarHandler.cc3
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)
101void ToolbarHandler::setMode(ToolbarMode mode, bool initialise) { 101void 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);