]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/QLToolbar.C
split LyXFunc::getStatus() into inset specific chunks
[features.git] / src / frontends / qt2 / QLToolbar.C
index a1f75666153c4125336d3cef3b9390524e4bc27c..07fa9829e7e9f6b4379cc8d49558fe467567527d 100644 (file)
@@ -70,10 +70,11 @@ void QLToolbar::update()
 
                button->setToggleButton(true);
                button->setOn(status.onoff(true));
-               button->setEnabled(!status.disabled());
+               button->setEnabled(status.enabled());
        }
 
-       bool const enable = !owner_->getLyXFunc().getStatus(FuncRequest(LFUN_LAYOUT)).disabled();
+       bool const enable = owner_->getLyXFunc().
+               getStatus(FuncRequest(LFUN_LAYOUT)).enabled();
 
        // Workaround for Qt bug where setEnabled(true) closes
        // the popup