1.1 --- a/mapeditor.cpp Wed Jun 20 10:51:46 2007 +0000
1.2 +++ b/mapeditor.cpp Wed Jun 20 11:05:39 2007 +0000
1.3 @@ -716,7 +716,7 @@
1.4 parser.setError (Aborted,"Could not read filename");
1.5 } else
1.6 {
1.7 - exportXHTML (fname);
1.8 + exportXHTML (fname,false);
1.9 }
1.10 /////////////////////////////////////////////////////////////////////
1.11 } else if (com=="importDir")
1.12 @@ -1794,17 +1794,16 @@
1.13 }
1.14 }
1.15
1.16 -void MapEditor::exportXHTML (const QString &dir)
1.17 +void MapEditor::exportXHTML (const QString &dir, bool askForName)
1.18 {
1.19 ExportXHTMLDialog dia(this);
1.20 dia.setFilePath (filePath );
1.21 dia.setMapName (mapName );
1.22 dia.readSettings();
1.23 - dia.setDir(dir);
1.24
1.25 bool ok=true;
1.26
1.27 - if (dir=="")
1.28 + if (askForName)
1.29 {
1.30 if (dia.exec()!=QDialog::Accepted)
1.31 ok=false;