Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wonder committed May 1, 2007
1 parent fa35aac commit afd6e39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit afd6e39

Please sign in to comment.