Use QgsMessageViewer properly - it deletes itself when closed.

This commit fixes a crash when trying to do SVG export.


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6918 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2007-05-01 00:03:10 +00:00
parent fa35aac98f
commit afd6e396f7

View File

@ -747,13 +747,12 @@ void QgsComposer::on_mActionExportAsSVG_activated(void)
"to PostScript if the SVG output is not "
"satisfactory."
"</p>"));
m->exec();
m->showMessage();
if (m->checkBoxState() == Qt::Checked)
myQSettings.setValue("/UI/displaySVGWarning", false);
else
myQSettings.setValue("/UI/displaySVGWarning", true);
delete m;
}
QString myLastUsedFile = myQSettings.readEntry("/UI/lastSaveAsSvgFile","qgis.svg");