mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
fa35aac98f
commit
afd6e396f7
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user