mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
9fd1c45578
commit
067e770bfe
@ -405,7 +405,7 @@ static bool isSortable(QString const & type)
|
|||||||
|
|
||||||
void TocWidget::updateView()
|
void TocWidget::updateView()
|
||||||
{
|
{
|
||||||
if (!gui_view_.currentBufferView()) {
|
if (!gui_view_.documentBufferView()) {
|
||||||
enableControls(false);
|
enableControls(false);
|
||||||
typeCO->setEnabled(false);
|
typeCO->setEnabled(false);
|
||||||
tocTV->setModel(0);
|
tocTV->setModel(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user