Skip to content

Commit

Permalink
Re-enabled toolbar button for SQL Anywhere plugin.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15553 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ddehaan committed Mar 21, 2011
1 parent ed75d68 commit 665da62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/sqlanywhere/sqlanywhere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void SqlAnywhere::initGui()
connect( mActionAddSqlAnywhereLayer, SIGNAL( triggered() ), this, SLOT( addSqlAnywhereLayer() ) );

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

// Also add to Layer menu
mQGisIface->insertAddLayerAction( mActionAddSqlAnywhereLayer );
Expand Down Expand Up @@ -181,7 +181,7 @@ void SqlAnywhere::addSqlAnywhereLayer()
// Unload the plugin and clean up the GUI
void SqlAnywhere::unload()
{
// mQGisIface->removeToolBarIcon( mActionAddSqlAnywhereLayer );
mQGisIface->layerToolBar()->removeAction( mActionAddSqlAnywhereLayer );
mQGisIface->removeAddLayerAction( mActionAddSqlAnywhereLayer );
delete mActionAddSqlAnywhereLayer;
}
Expand Down

0 comments on commit 665da62

Please sign in to comment.