From afd6e396f71b2f50ca219efc5a4ef7fdd8fda1f1 Mon Sep 17 00:00:00 2001 From: wonder Date: Tue, 1 May 2007 00:03:10 +0000 Subject: [PATCH] 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 --- src/app/composer/qgscomposer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/composer/qgscomposer.cpp b/src/app/composer/qgscomposer.cpp index efad394534a..57bd1e2a093 100644 --- a/src/app/composer/qgscomposer.cpp +++ b/src/app/composer/qgscomposer.cpp @@ -747,13 +747,12 @@ void QgsComposer::on_mActionExportAsSVG_activated(void) "to PostScript if the SVG output is not " "satisfactory." "

")); - 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");