From: Juergen Spitzmueller Date: Fri, 22 Mar 2019 13:10:05 +0000 (+0100) Subject: Disable language combo if there is nothing to select X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=32537aeda00007a9ebd372d9e338bcccfd0922f7;p=features.git Disable language combo if there is nothing to select --- diff --git a/src/frontends/qt4/GuiLyXFiles.cpp b/src/frontends/qt4/GuiLyXFiles.cpp index d1b1df02d2..21d3653aab 100644 --- a/src/frontends/qt4/GuiLyXFiles.cpp +++ b/src/frontends/qt4/GuiLyXFiles.cpp @@ -315,6 +315,9 @@ void GuiLyXFiles::on_filesLW_itemClicked(QTreeWidgetItem * item, int) void GuiLyXFiles::setLanguage() { + // Enable language selection only if there is a selection. + languageCO->setEnabled(languageCO->count() > 1); + languageLA->setEnabled(languageCO->count() > 1); // first try last setting if (!savelang_.isEmpty()) { int index = languageCO->findData(savelang_);