* 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:
Jürgen Spitzmüller 2007-05-21 14:32:10 +00:00
parent 996ff26f3a
commit 68a71fcde1
2 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}