]> git.lyx.org Git - features.git/commitdiff
GuiLyXFiles: fix button controller handling
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 3 Sep 2023 13:09:13 +0000 (15:09 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 3 Sep 2023 13:09:13 +0000 (15:09 +0200)
src/frontends/qt/GuiLyXFiles.cpp

index 06bc0056554e51d459765826e72e70c96d3bb025..059080e2dff2d824f24b5ba8bbc4593af2a92f2c 100644 (file)
@@ -492,6 +492,9 @@ void GuiLyXFiles::updateContents()
        filesLW->sortItems(0, Qt::AscendingOrder);
        // redo filter
        filterLabels();
+       if (!isClosing())
+               // handle buttons
+               bc().setValid(isValid());
 }
 
 
@@ -627,8 +630,6 @@ void GuiLyXFiles::paramsToDialog()
                setTitle(qt_("New File From Template"));
        else
                setTitle(qt_("Open File"));
-
-       bc().setValid(isValid());
 }