Skip to content
Permalink
Browse files
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 91c7ba5fdc9bcaba29c88bc5f3f9912d6a7c6f13
Showing with 4 additions and 6 deletions.
  1. +4 −6 src/plugins/ogr_converter/plugin.cpp
@@ -26,8 +26,6 @@
#include <QAction>
#include <QFile>
#include <QToolBar>
// std
#include <cassert>

#include <ogr_api.h>

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

OgrPlugin::~OgrPlugin()
@@ -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 );
@@ -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;
}

0 comments on commit 91c7ba5

Please sign in to comment.