diff -r 4a84d7e444d8 -r c2ce9944148c exportxhtmldialog.cpp --- a/exportxhtmldialog.cpp Thu Jan 21 11:56:57 2010 +0000 +++ b/exportxhtmldialog.cpp Wed Feb 10 13:48:42 2010 +0000 @@ -273,6 +273,7 @@ void ExportXHTMLDialog::doExport (const QString &mapname) { + // Save options to settings file // (but don't save at destructor, which // is called for "cancel", too) @@ -310,6 +311,12 @@ (filepath,"/export/xhtml/css",css); } + if (!saveSettingsInMap) + settings.clearLocal("/export/xhtml"); + else + settings.setLocalEntry + (filepath,"/export/xhtml/saveSettingsInMap","yes"); + // Provide a smaller URL-icon to improve Layout QPixmap pm; if (!pm.load(ipath,"PNG") ) @@ -318,11 +325,6 @@ if(!pm.save (dir + "flags/flag-url-16x16.png","PNG")) QMessageBox::warning( 0, tr( "Warning" ),tr("Could not write %1").arg(ipath)); - if (!saveSettingsInMap) - settings.clearLocal("/export/xhtml"); - else - settings.setLocalEntry - (filepath,"/export/xhtml/saveSettingsInMap","yes"); // Copy CSS file QFile css_src (css);