Skip to content
Permalink
Browse files

Re-enabled toolbar button for SQL Anywhere plugin.

git-svn-id: http://svn.osgeo.org/qgis/trunk@15553 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ddehaan
ddehaan committed Mar 21, 2011
1 parent ed75d68 commit 665da62a5f6839524aaa55aea12f6136444bdb6d
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 665da62

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