]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt/Dialog.cpp
#10571 improved handling of WM's signal when switching from or to full-screen window
[features.git] / src / frontends / qt / Dialog.cpp
index 4dbc2d43d628bb3ef898333d3a844230bef56dec..a646a898f550150f7e5ea10b1d166cd1a3e93aa8 100644 (file)
@@ -106,7 +106,8 @@ KernelDocType Dialog::docType() const
        if (buffer().params().isLiterate())
                return LITERATE;
 
-       return DOCBOOK;
+       // This case should not happen.
+       return LATEX;
 }
 
 
@@ -259,9 +260,6 @@ void Dialog::checkStatus()
        if (canApply()) {
                bool const readonly = isBufferReadonly();
                enableView(!readonly || canApplyToReadOnly());
-               // refreshReadOnly() is too generous in _enabling_ widgets
-               // update dialog to disable disabled widgets again
-
                updateView();
        } else
                enableView(false);