scripted exports (continued)
authorinsilmaril
Wed, 20 Jun 2007 10:51:44 +0000
changeset 515f396157bbb06
parent 514 497fab7d1404
child 516 263988fee2a7
scripted exports (continued)
exportxhtmldialog.cpp
     1.1 --- a/exportxhtmldialog.cpp	Tue Jun 19 14:20:30 2007 +0000
     1.2 +++ b/exportxhtmldialog.cpp	Wed Jun 20 10:51:44 2007 +0000
     1.3 @@ -11,6 +11,7 @@
     1.4  extern Options options;
     1.5  extern QDir vymBaseDir;
     1.6  extern Settings settings;
     1.7 +extern bool debug;
     1.8  
     1.9  ExportXHTMLDialog::ExportXHTMLDialog(QWidget* parent) : QDialog(parent)
    1.10  {
    1.11 @@ -118,11 +119,15 @@
    1.12  	}
    1.13  }
    1.14  
    1.15 +void ExportXHTMLDialog::setDir(const QString &d)
    1.16 +{
    1.17 +	dir=d;
    1.18 +	if (dir.right(1)!="/") dir+="/";
    1.19 +}
    1.20 +
    1.21  void ExportXHTMLDialog::dirChanged()
    1.22  {
    1.23 -	dir=ui.lineEditDir->text();
    1.24 -	if (dir.right(1)!="/")
    1.25 -		dir+="/";
    1.26 +	setDir (ui.lineEditDir->text());
    1.27  	settingsChanged=true;
    1.28  }
    1.29