commit 881b7ec673d1e6119872c5e9adbd9309cc2260da
Author: Guillaume Munch <[email protected]>
Date:   Sat Jun 11 10:54:30 2016 +0100

    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)

diff --git a/src/frontends/qt4/LayoutBox.cpp b/src/frontends/qt4/LayoutBox.cpp
index 1054a09..09dd878 100644
--- a/src/frontends/qt4/LayoutBox.cpp
+++ b/src/frontends/qt4/LayoutBox.cpp
@@ -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();
 }
 
 

Reply via email to