[QGIS Commit] r15553 - trunk/qgis/src/plugins/sqlanywhere

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Mar 21 13:48:00 EDT 2011


Author: ddehaan
Date: 2011-03-21 10:48:00 -0700 (Mon, 21 Mar 2011)
New Revision: 15553

Modified:
   trunk/qgis/src/plugins/sqlanywhere/sqlanywhere.cpp
Log:
Re-enabled toolbar button for SQL Anywhere plugin.


Modified: trunk/qgis/src/plugins/sqlanywhere/sqlanywhere.cpp
===================================================================
--- trunk/qgis/src/plugins/sqlanywhere/sqlanywhere.cpp	2011-03-21 16:33:40 UTC (rev 15552)
+++ trunk/qgis/src/plugins/sqlanywhere/sqlanywhere.cpp	2011-03-21 17:48:00 UTC (rev 15553)
@@ -83,7 +83,7 @@
   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 @@
 // Unload the plugin and clean up the GUI
 void SqlAnywhere::unload()
 {
-  // mQGisIface->removeToolBarIcon( mActionAddSqlAnywhereLayer );
+  mQGisIface->layerToolBar()->removeAction( mActionAddSqlAnywhereLayer );
   mQGisIface->removeAddLayerAction( mActionAddSqlAnywhereLayer );
   delete mActionAddSqlAnywhereLayer;
 }



More information about the QGIS-commit mailing list