Skip to content
Permalink
Browse files

Re-enabled toolbar button for SQL Anywhere plugin.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15553 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ddehaan
ddehaan committed Mar 21, 2011
1 parent 79700d0 commit 8ee8b5770e3aa80b3fce30a91520da89ba1f0858
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/sqlanywhere/sqlanywhere.cpp
@@ -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 );
@@ -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;
}

0 comments on commit 8ee8b57

Please sign in to comment.
You can’t perform that action at this time.