Skip to content

Commit

Permalink
Fix for crashes after WMS error messages
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7301 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Oct 26, 2007
1 parent b6242c1 commit d3c1288
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -1036,8 +1036,9 @@ void QgsMapCanvas::showError(QgsMapLayer * mapLayer)
mapLayer->errorString()
);
mv->exec();
delete mv;

//MH
//QgsMessageViewer automatically sets delete on close flag
//so deleting mv would lead to a segfault
}

QPoint QgsMapCanvas::mouseLastXY()
Expand Down

0 comments on commit d3c1288

Please sign in to comment.