mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Disable bookmarksopenlevel SL when bookmarksopen is false
Fixes #11289
(cherry picked from commit f2243a3bc7
)
This commit is contained in:
parent
1741eb9c2c
commit
89d42a68f5
@ -1558,6 +1558,8 @@ GuiDocument::GuiDocument(GuiView & lv)
|
||||
this, SLOT(change_adaptor()));
|
||||
connect(pdfSupportModule->bookmarksopenGB, SIGNAL(toggled(bool)),
|
||||
this, SLOT(change_adaptor()));
|
||||
connect(pdfSupportModule->bookmarksopenGB, SIGNAL(toggled(bool)),
|
||||
this, SLOT(bookmarksopenChanged(bool)));
|
||||
connect(pdfSupportModule->bookmarksopenlevelSB, SIGNAL(valueChanged(int)),
|
||||
this, SLOT(change_adaptor()));
|
||||
connect(pdfSupportModule->breaklinksCB, SIGNAL(toggled(bool)),
|
||||
@ -1680,6 +1682,12 @@ void GuiDocument::shellescapeChanged()
|
||||
changed();
|
||||
}
|
||||
|
||||
void GuiDocument::bookmarksopenChanged(bool state)
|
||||
{
|
||||
pdfSupportModule->bookmarksopenlevelSB->setEnabled(state);
|
||||
pdfSupportModule->bookmarksopenlevelLA->setEnabled(state);
|
||||
}
|
||||
|
||||
|
||||
void GuiDocument::slotApply()
|
||||
{
|
||||
@ -4028,6 +4036,8 @@ void GuiDocument::paramsToDialog()
|
||||
pdfSupportModule->bookmarksopenGB->setChecked(pdf.bookmarksopen);
|
||||
|
||||
pdfSupportModule->bookmarksopenlevelSB->setValue(pdf.bookmarksopenlevel);
|
||||
pdfSupportModule->bookmarksopenlevelSB->setEnabled(pdf.bookmarksopen);
|
||||
pdfSupportModule->bookmarksopenlevelLA->setEnabled(pdf.bookmarksopen);
|
||||
|
||||
pdfSupportModule->breaklinksCB->setChecked(pdf.breaklinks);
|
||||
pdfSupportModule->pdfborderCB->setChecked(pdf.pdfborder);
|
||||
|
@ -154,6 +154,7 @@ private Q_SLOTS:
|
||||
void allPackagesAuto();
|
||||
void allPackagesAlways();
|
||||
void allPackagesNot();
|
||||
void bookmarksopenChanged(bool);
|
||||
private:
|
||||
/// validate listings parameters and return an error message, if any
|
||||
QString validateListingsParameters();
|
||||
|
@ -130,6 +130,9 @@ What's new
|
||||
|
||||
- Don't close a document if the "close or hide" dialog is canceled (bug
|
||||
11456).
|
||||
|
||||
- Disable PDF bookmarksopen level widget if booksmarksopen is false
|
||||
(bug 11289).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
Loading…
Reference in New Issue
Block a user