]> git.lyx.org Git - features.git/commitdiff
fix critical part of http://bugzilla.lyx.org/show_bug.cgi?id=5082
authorAbdelrazak Younes <younes@lyx.org>
Tue, 29 Jul 2008 10:33:02 +0000 (10:33 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 29 Jul 2008 10:33:02 +0000 (10:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25966 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/TocWidget.cpp

index 1194cc8d5d9458e78784ed81220bf70f9680b64e..dbf4948aa585d348f430ece9a02f6f73ae67eab2 100644 (file)
@@ -61,6 +61,10 @@ TocWidget::TocWidget(GuiView & gui_view, QWidget * parent)
 
        // The toc types combo won't change its model.
        typeCO->setModel(gui_view_.tocModels().nameModel());
+
+       // Make sure the buttons are disabled when first shown without a loaded
+       // Buffer.
+       enableControls(false);
 }