mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Remove that pesky broken window that pops up with Qt5 when saving preferences
It turns out this show event is not necessary (tested with Qt4.8 and Qt5)
This commit is contained in:
parent
89175ee0f1
commit
881b7ec673
@ -638,6 +638,7 @@ void LayoutBox::updateContents(bool reset)
|
||||
if (!bv) {
|
||||
d->model_->clear();
|
||||
setEnabled(false);
|
||||
setMinimumWidth(sizeHint().width());
|
||||
d->text_class_.reset();
|
||||
d->inset_ = 0;
|
||||
return;
|
||||
@ -677,13 +678,10 @@ void LayoutBox::updateContents(bool reset)
|
||||
|
||||
set(d->owner_.currentBufferView()->cursor().innerParagraph().layout().name());
|
||||
d->countCategories();
|
||||
|
||||
// needed to recalculate size hint
|
||||
hide();
|
||||
|
||||
setMinimumWidth(sizeHint().width());
|
||||
setEnabled(!bv->buffer().isReadonly() &&
|
||||
lyx::getStatus(FuncRequest(LFUN_LAYOUT)).enabled());
|
||||
show();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user