From 168a26b7639bcf5870702e2d84b59439f63929c0 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 29 Jul 2008 10:33:02 +0000 Subject: [PATCH] fix critical part of http://bugzilla.lyx.org/show_bug.cgi?id=5082 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25966 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/TocWidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp index 1194cc8d5d..dbf4948aa5 100644 --- a/src/frontends/qt4/TocWidget.cpp +++ b/src/frontends/qt4/TocWidget.cpp @@ -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); }