exportxhtmldialog.cpp
changeset 822 c2ce9944148c
parent 624 4ffc47ae27e4
     1.1 --- a/exportxhtmldialog.cpp	Thu Jan 21 11:56:57 2010 +0000
     1.2 +++ b/exportxhtmldialog.cpp	Wed Feb 10 13:48:42 2010 +0000
     1.3 @@ -273,6 +273,7 @@
     1.4  
     1.5  void ExportXHTMLDialog::doExport (const QString &mapname)
     1.6  {
     1.7 +
     1.8  	// Save options to settings file 
     1.9  	// (but don't save at destructor, which
    1.10  	// is called for "cancel", too)
    1.11 @@ -310,6 +311,12 @@
    1.12  			(filepath,"/export/xhtml/css",css);	
    1.13  	}
    1.14  
    1.15 +	if (!saveSettingsInMap)
    1.16 +		settings.clearLocal("/export/xhtml");
    1.17 +	else	
    1.18 +		settings.setLocalEntry 
    1.19 +			(filepath,"/export/xhtml/saveSettingsInMap","yes");
    1.20 +
    1.21  	// Provide a smaller URL-icon to improve Layout
    1.22  	QPixmap pm;
    1.23  	if (!pm.load(ipath,"PNG") )
    1.24 @@ -318,11 +325,6 @@
    1.25  		
    1.26  	if(!pm.save (dir + "flags/flag-url-16x16.png","PNG"))
    1.27  		QMessageBox::warning( 0, tr( "Warning" ),tr("Could not write %1").arg(ipath));
    1.28 -	if (!saveSettingsInMap)
    1.29 -		settings.clearLocal("/export/xhtml");
    1.30 -	else	
    1.31 -		settings.setLocalEntry 
    1.32 -			(filepath,"/export/xhtml/saveSettingsInMap","yes");
    1.33  
    1.34  	// Copy CSS file
    1.35  	QFile css_src (css);