Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix OGR converter menu removal
git-svn-id: http://svn.osgeo.org/qgis/trunk@13914 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jul 13, 2010
1 parent f14903a commit 91c7ba5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/plugins/ogr_converter/plugin.cpp
Expand Up @@ -26,8 +26,6 @@
#include <QAction>
#include <QFile>
#include <QToolBar>
// std
#include <cassert>

#include <ogr_api.h>

Expand All @@ -46,7 +44,7 @@ OgrPlugin::OgrPlugin( QgisInterface * theQgisInterface ) :
mQGisIface( theQgisInterface ),
mQActionPointer( 0 )
{
assert( 0 != mQGisIface );
Q_ASSERT( mQGisIface );
}

OgrPlugin::~OgrPlugin()
Expand Down Expand Up @@ -83,7 +81,7 @@ void OgrPlugin::help()

void OgrPlugin::run()
{
assert( 0 != mQGisIface );
Q_ASSERT( mQGisIface );

Dialog* ogrDialog = new Dialog( mQGisIface->mainWindow(), QgisGui::ModalDialogFlags );
ogrDialog->setAttribute( Qt::WA_DeleteOnClose );
Expand All @@ -92,13 +90,13 @@ void OgrPlugin::run()

void OgrPlugin::unload()
{
assert( 0 != mQGisIface );
Q_ASSERT( mQGisIface );

// TODO: Who is responsible for OGR cleanup?
//OGRCleanupAll();

// remove the GUI
mQGisIface->removePluginMenu( "OG&R Converter", mQActionPointer );
mQGisIface->removePluginMenu( tr( "OG&R Converter" ), mQActionPointer );
mQGisIface->removeToolBarIcon( mQActionPointer );
delete mQActionPointer;
}
Expand Down

0 comments on commit 91c7ba5

Please sign in to comment.