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-Tag: lyx-2.4.0dev-acb2ca7b~2394 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9a2c5b515a05abe122a8b19262e6ec6ce66df06b;p=lyx.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_);