]> git.lyx.org Git - features.git/commitdiff
* src/frontends/qt4/QDocument.cpp (validate_listings_params):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 21 May 2007 14:32:10 +0000 (14:32 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 21 May 2007 14:32:10 +0000 (14:32 +0000)
* 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

src/frontends/qt4/QDocument.cpp
src/frontends/qt4/QListings.cpp

index 85376ff9c17dad95d7016e34ebe2be1f467ed8fe..67a9781540607c9c2d0617578e26fc4fa58519bc 100644 (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);
        }
 }
 
index 8d826229fa2d7e539d04b574316469c9f9f2e2a2..a549ee508b950a92011be1f72c87efd4a3801896 100644 (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);
        }
 }