Skip to content

Commit 8ee8b57

Browse files
author
ddehaan
committed
Re-enabled toolbar button for SQL Anywhere plugin.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15553 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 79700d0 commit 8ee8b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/sqlanywhere/sqlanywhere.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void SqlAnywhere::initGui()
8383
connect( mActionAddSqlAnywhereLayer, SIGNAL( triggered() ), this, SLOT( addSqlAnywhereLayer() ) );
8484

8585
// Add the icon to the new layers toolbar
86-
// mQGisIface->addToolBarIcon( mActionAddSqlAnywhereLayer );
86+
mQGisIface->layerToolBar()->addAction( mActionAddSqlAnywhereLayer );
8787

8888
// Also add to Layer menu
8989
mQGisIface->insertAddLayerAction( mActionAddSqlAnywhereLayer );
@@ -181,7 +181,7 @@ void SqlAnywhere::addSqlAnywhereLayer()
181181
// Unload the plugin and clean up the GUI
182182
void SqlAnywhere::unload()
183183
{
184-
// mQGisIface->removeToolBarIcon( mActionAddSqlAnywhereLayer );
184+
mQGisIface->layerToolBar()->removeAction( mActionAddSqlAnywhereLayer );
185185
mQGisIface->removeAddLayerAction( mActionAddSqlAnywhereLayer );
186186
delete mActionAddSqlAnywhereLayer;
187187
}

0 commit comments

Comments
 (0)