]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Dialog.cpp
Compil fix.
[lyx.git] / src / frontends / qt4 / Dialog.cpp
index fc741985d8c73a1fcffabfc94150d0e23e9931ab..88cfcec95f162597ed8414026cf2401eccd94620 100644 (file)
 #include "LyXFunc.h"
 
 #include "support/debug.h"
+#include "support/lassert.h"
 
 #include <QSettings>
 #include <QString>
 
-#include "support/lassert.h"
-
 #include <string>
 
 using namespace std;
@@ -135,7 +134,7 @@ void Dialog::showData(string const & data)
                return;
 
        if (!initialiseParams(data)) {
-               LYXERR0("Dialog \"" << fromqstr(name())
+               LYXERR0("Dialog \"" << name()
                        << "\" failed to translate the data string passed to show()");
                return;
        }
@@ -163,21 +162,6 @@ void Dialog::apply()
 }
 
 
-void Dialog::updateData(string const & data)
-{
-       if (!initialiseParams(data)) {
-               LYXERR0("Dialog \"" << fromqstr(name())
-                      << "\" could not be initialized");
-               return;
-       }
-
-       if (lyxview_->buffer())
-               updateView();
-       else
-               enableView(false);
-}
-
-
 void Dialog::showView()
 {
        // Make sure the dialog controls are correctly enabled/disabled with
@@ -224,8 +208,10 @@ void Dialog::checkStatus()
 {
        // buffer independant dialogs are always active.
        // This check allows us leave canApply unimplemented for some dialogs.
-       if (!isBufferDependent())
+       if (!isBufferDependent()) {
+               updateView();
                return;
+       }
 
        // deactivate the dialog if we have no buffer
        if (!isBufferAvailable()) {