]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiListings.cpp
Remove a redundant deletion of a QObject
[lyx.git] / src / frontends / qt4 / GuiListings.cpp
index b6f3ec7f7db509772a9651b64d08e34daf4376fc..bc7fdb8176107f4f0c9b2be5e62da50ce18b8a0c 100644 (file)
@@ -21,6 +21,7 @@
 #include "insets/InsetListingsParams.h"
 
 #include "support/convert.h"
+#include "support/debug.h"
 #include "support/gettext.h"
 #include "support/lstrings.h"
 
@@ -345,25 +346,15 @@ string GuiListings::construct_params()
 
 docstring GuiListings::validate_listings_params()
 {
-       // use a cache here to avoid repeated validation
-       // of the same parameters
-       static string param_cache;
-       static docstring msg_cache;
-       
        if (bypassCB->isChecked())
                return docstring();
-
-       string params = construct_params();
-       if (params != param_cache) {
-               param_cache = params;
-               msg_cache = InsetListingsParams(params).validate();
-       }
-       return msg_cache;
+       return InsetListingsParams(construct_params()).validate();
 }
 
 
 void GuiListings::setListingsMsg()
 {
+       // FIXME THREAD
        static bool isOK = true;
        docstring msg = validate_listings_params();
        if (msg.empty()) {