work around a Qt bug in 3.1.2, fixing bug 1136

JMarc, this applies to 1.3.3 as well. Do you want it ?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7040 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-05-24 15:53:55 +00:00
parent 94278f7be0
commit a33f68e37f
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-05-24 John Levon <levon@movementarian.org>
* Toolbar_pimpl.C: workaround a Qt bug with combobox
popup
2003-05-24 John Levon <levon@movementarian.org>
* Makefile.am:

View File

@ -86,8 +86,12 @@ void Toolbar::Pimpl::update()
button->setEnabled(!status.disabled());
}
if (combo_)
combo_->setEnabled(!owner_->getLyXFunc().getStatus(LFUN_LAYOUT).disabled());
bool const enable = !owner_->getLyXFunc().getStatus(LFUN_LAYOUT).disabled();
// Workaround for Qt bug where setEnabled(true) closes
// the popup
if (combo_ && enable != combo_->isEnabled())
combo_->setEnabled(enable);
}