#include "LyXFunc.h"
#include "support/debug.h"
+#include "support/lassert.h"
#include <QSettings>
#include <QString>
-#include "support/assert.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 (isBufferDependent() && !isBufferAvailable())
- return;
-
- if (!initialiseParams(data)) {
- LYXERR0("Dialog \"" << fromqstr(name())
- << "\" could not be initialized");
- return;
- }
-
- updateView();
-}
-
-
void Dialog::showView()
{
- // Make sure the dialog is up-to-date.
- updateView();
// Make sure the dialog controls are correctly enabled/disabled with
// readonly status.
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()) {