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:
Guillaume Munch 2016-06-11 10:54:30 +01:00
parent 89175ee0f1
commit 881b7ec673

View File

@ -638,6 +638,7 @@ void LayoutBox::updateContents(bool reset)
if (!bv) { if (!bv) {
d->model_->clear(); d->model_->clear();
setEnabled(false); setEnabled(false);
setMinimumWidth(sizeHint().width());
d->text_class_.reset(); d->text_class_.reset();
d->inset_ = 0; d->inset_ = 0;
return; return;
@ -677,13 +678,10 @@ void LayoutBox::updateContents(bool reset)
set(d->owner_.currentBufferView()->cursor().innerParagraph().layout().name()); set(d->owner_.currentBufferView()->cursor().innerParagraph().layout().name());
d->countCategories(); d->countCategories();
// needed to recalculate size hint
hide();
setMinimumWidth(sizeHint().width()); setMinimumWidth(sizeHint().width());
setEnabled(!bv->buffer().isReadonly() && setEnabled(!bv->buffer().isReadonly() &&
lyx::getStatus(FuncRequest(LFUN_LAYOUT)).enabled()); lyx::getStatus(FuncRequest(LFUN_LAYOUT)).enabled());
show();
} }