diff -r 24691cdacc02 -r 0ccc00c05a22 mapeditor.cpp --- a/mapeditor.cpp Wed Jun 20 10:51:46 2007 +0000 +++ b/mapeditor.cpp Wed Jun 20 11:05:39 2007 +0000 @@ -716,7 +716,7 @@ parser.setError (Aborted,"Could not read filename"); } else { - exportXHTML (fname); + exportXHTML (fname,false); } ///////////////////////////////////////////////////////////////////// } else if (com=="importDir") @@ -1794,17 +1794,16 @@ } } -void MapEditor::exportXHTML (const QString &dir) +void MapEditor::exportXHTML (const QString &dir, bool askForName) { ExportXHTMLDialog dia(this); dia.setFilePath (filePath ); dia.setMapName (mapName ); dia.readSettings(); - dia.setDir(dir); bool ok=true; - if (dir=="") + if (askForName) { if (dia.exec()!=QDialog::Accepted) ok=false;