]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocWidget.cpp
Properly support the cite engines in the GUI
[lyx.git] / src / frontends / qt4 / TocWidget.cpp
index 23db10ec73c0219588749e1145f98f4d1b5c8102..1f172a1a6dd7bf77ad41ec68e4af55d43ec8661e 100644 (file)
@@ -156,7 +156,7 @@ bool TocWidget::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_OUTLINE_IN:
        case LFUN_OUTLINE_OUT:
        case LFUN_SECTION_SELECT:
-               status.setEnabled(item.dit() != 0);
+               status.setEnabled((bool)item.dit());
                return true;
 
        case LFUN_LABEL_COPY_AS_REFERENCE: {