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@7301 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Oct 26, 2007
1 parent 2b87168 commit 80f090a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgsmapcanvas.cpp
Original file line number Diff line number Diff line change
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 80f090a

Please sign in to comment.