#include "LyXFunc.h"
#include "support/debug.h"
+#include "support/lassert.h"
#include <QSettings>
#include <QString>
-#include "support/lassert.h"
-
#include <string>
using namespace std;
return;
if (!initialiseParams(data)) {
- LYXERR0("Dialog \"" << fromqstr(name())
+ LYXERR0("Dialog \"" << name()
<< "\" failed to translate the data string passed to show()");
return;
}
}
-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
{
// 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()) {