commit 4393382f0297ca34860b5867506c6860c4c6c1ef
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Sep 3 15:09:13 2023 +0200

    GuiLyXFiles: fix button controller handling
---
 src/frontends/qt/GuiLyXFiles.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiLyXFiles.cpp b/src/frontends/qt/GuiLyXFiles.cpp
index 06bc005..059080e 100644
--- a/src/frontends/qt/GuiLyXFiles.cpp
+++ b/src/frontends/qt/GuiLyXFiles.cpp
@@ -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());
 }
 
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to