]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/Toolbars.cpp
Implement sane UI for switching tristate toolbars (#6364)
[lyx.git] / src / frontends / qt / Toolbars.cpp
index 7d29344732e8d44a05fdb1cdc59689a148135ea1..cf184ae9e25273c7bb6abc0c482f9dc6dee50136 100644 (file)
@@ -405,8 +405,7 @@ void Toolbars::readToolbarSettings(Lexer & lex)
 
                if (visibility & ALLOWAUTO) {
                        if (ToolbarInfo const * ti = info(name))
-                               const_cast<ToolbarInfo *>(ti)->gui_name +=
-                                       " (" + _("auto") + ")";
+                               const_cast<ToolbarInfo *>(ti)->allow_auto = true;
                }
        }
 }