]> git.lyx.org Git - lyx.git/commitdiff
Disable the TOC when no document is open.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 6 Sep 2009 13:07:24 +0000 (13:07 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 6 Sep 2009 13:07:24 +0000 (13:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31308 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/TocWidget.cpp

index d9ea2d79671733d6be569b48b1b29eb50c52f54c..7eae64667b04c57ef3b13b1d00c4f8aaf0a8b759 100644 (file)
@@ -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);