# HG changeset patch # User insilmaril # Date 1182336704 0 # Node ID f396157bbb063b786023bf666b0c6ffe757d165e # Parent 497fab7d1404a41684e0ba0caeada80caaab58a6 scripted exports (continued) diff -r 497fab7d1404 -r f396157bbb06 exportxhtmldialog.cpp --- a/exportxhtmldialog.cpp Tue Jun 19 14:20:30 2007 +0000 +++ b/exportxhtmldialog.cpp Wed Jun 20 10:51:44 2007 +0000 @@ -11,6 +11,7 @@ extern Options options; extern QDir vymBaseDir; extern Settings settings; +extern bool debug; ExportXHTMLDialog::ExportXHTMLDialog(QWidget* parent) : QDialog(parent) { @@ -118,11 +119,15 @@ } } +void ExportXHTMLDialog::setDir(const QString &d) +{ + dir=d; + if (dir.right(1)!="/") dir+="/"; +} + void ExportXHTMLDialog::dirChanged() { - dir=ui.lineEditDir->text(); - if (dir.right(1)!="/") - dir+="/"; + setDir (ui.lineEditDir->text()); settingsChanged=true; }