mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
94278f7be0
commit
a33f68e37f
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user