Skip to content

Commit 965becd

Browse files
author
jef
committed
fix OGR converter menu removal
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13914 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f010e40 commit 965becd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/plugins/ogr_converter/plugin.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
#include <QAction>
2727
#include <QFile>
2828
#include <QToolBar>
29-
// std
30-
#include <cassert>
3129

3230
#include <ogr_api.h>
3331

@@ -46,7 +44,7 @@ OgrPlugin::OgrPlugin( QgisInterface * theQgisInterface ) :
4644
mQGisIface( theQgisInterface ),
4745
mQActionPointer( 0 )
4846
{
49-
assert( 0 != mQGisIface );
47+
Q_ASSERT( mQGisIface );
5048
}
5149

5250
OgrPlugin::~OgrPlugin()
@@ -83,7 +81,7 @@ void OgrPlugin::help()
8381

8482
void OgrPlugin::run()
8583
{
86-
assert( 0 != mQGisIface );
84+
Q_ASSERT( mQGisIface );
8785

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

9391
void OgrPlugin::unload()
9492
{
95-
assert( 0 != mQGisIface );
93+
Q_ASSERT( mQGisIface );
9694

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

10098
// remove the GUI
101-
mQGisIface->removePluginMenu( "OG&R Converter", mQActionPointer );
99+
mQGisIface->removePluginMenu( tr( "OG&R Converter" ), mQActionPointer );
102100
mQGisIface->removeToolBarIcon( mQActionPointer );
103101
delete mQActionPointer;
104102
}

0 commit comments

Comments
 (0)