mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
* src/frontends/qt4/QTocDialog.C (updateGui):
- disable depth slider when there's no content (prevents crash). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16575 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
47e8e30eb1
commit
7bd88b5056
@ -221,6 +221,7 @@ void QTocDialog::updateGui()
|
||||
typeCO->setModel(type_model);
|
||||
tocTV->setModel(new QStandardItemModel);
|
||||
tocTV->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
depthSL->setEnabled(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -242,6 +243,7 @@ void QTocDialog::updateGui()
|
||||
enableButtons();
|
||||
|
||||
reconnectSelectionModel();
|
||||
depthSL->setEnabled(true);
|
||||
depthSL->setMaximum(form_->getTocDepth());
|
||||
setTreeDepth();
|
||||
select(form_->getCurrentIndex());
|
||||
|
Loading…
Reference in New Issue
Block a user