Skip to content

Commit

Permalink
fix Heatmap plugin unloading, also place button to the Raster toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 8, 2012
1 parent 30e2f32 commit 093aae5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/heatmap/heatmap.cpp
Expand Up @@ -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 );

}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 093aae5

Please sign in to comment.