Skip to content
Permalink
Browse files

fix Heatmap plugin unloading, also place button to the Raster toolbar

  • Loading branch information
alexbruy committed Feb 8, 2012
1 parent 30e2f32 commit 093aae56118b82adc091e7b6ee46d467b76c4666
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/plugins/heatmap/heatmap.cpp
@@ -78,7 +78,7 @@ void Heatmap::initGui()
// Connect the action to the run
connect( mQActionPointer, SIGNAL( triggered() ), this, SLOT( run() ) );
// Add the icon to the toolbar
mQGisIface->addToolBarIcon( mQActionPointer );
mQGisIface->addRasterToolBarIcon( mQActionPointer );
mQGisIface->addPluginToRasterMenu( tr( "&Heatmap" ), mQActionPointer );

}
@@ -108,8 +108,8 @@ void Heatmap::run()
void Heatmap::unload()
{
// remove the GUI
mQGisIface->removePluginMenu( "&Heatmap", mQActionPointer );
mQGisIface->removeToolBarIcon( mQActionPointer );
mQGisIface->removePluginRasterMenu( "&Heatmap", mQActionPointer );
mQGisIface->removeRasterToolBarIcon( mQActionPointer );
delete mQActionPointer;
}

0 comments on commit 093aae5

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