mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
* src/frontends/qt4/QDocument.cpp (validate_listings_params):
* src/frontends/qt4/QListings.cpp (validate_listings_params): - care for the apply button as well. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18444 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
996ff26f3a
commit
68a71fcde1
@ -620,12 +620,14 @@ void QDocumentDialog::validate_listings_params()
|
||||
textLayoutModule->listingsTB->setPlainText(
|
||||
qt_("Input listings parameters on the right. Enter ? for a list of parameters."));
|
||||
okPB->setEnabled(true);
|
||||
applyPB->setEnabled(true);
|
||||
}
|
||||
} catch (invalidParam & e) {
|
||||
isOK = false;
|
||||
// listingsTB->setTextColor("red");
|
||||
textLayoutModule->listingsTB->setPlainText(e.what());
|
||||
okPB->setEnabled(false);
|
||||
applyPB->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -220,11 +220,13 @@ void QListingsDialog::validate_listings_params()
|
||||
listingsTB->setPlainText(
|
||||
qt_("Input listings parameters on the right. Enter ? for a list of parameters."));
|
||||
okPB->setEnabled(true);
|
||||
applyPB->setEnabled(true);
|
||||
}
|
||||
} catch (invalidParam & e) {
|
||||
isOK = false;
|
||||
listingsTB->setPlainText(e.what());
|
||||
okPB->setEnabled(false);
|
||||
applyPB->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user