From: Vincent van Ravesteijn Date: Sun, 6 Sep 2009 13:07:24 +0000 (+0000) Subject: Disable the TOC when no document is open. X-Git-Tag: 2.0.0~5537 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=067e770bfef42ce16af1af108ce462549b0c83a5;p=features.git Disable the TOC when no document is open. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31308 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp index d9ea2d7967..7eae64667b 100644 --- a/src/frontends/qt4/TocWidget.cpp +++ b/src/frontends/qt4/TocWidget.cpp @@ -405,7 +405,7 @@ static bool isSortable(QString const & type) void TocWidget::updateView() { - if (!gui_view_.currentBufferView()) { + if (!gui_view_.documentBufferView()) { enableControls(false); typeCO->setEnabled(false); tocTV->setModel(0);