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
This commit is contained in:
Vincent van Ravesteijn 2009-09-06 13:07:24 +00:00
parent 9fd1c45578
commit 067e770bfe

View 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);