Skip to content

Commit 093aae5

Browse files
committed
fix Heatmap plugin unloading, also place button to the Raster toolbar
1 parent 30e2f32 commit 093aae5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/heatmap/heatmap.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void Heatmap::initGui()
7878
// Connect the action to the run
7979
connect( mQActionPointer, SIGNAL( triggered() ), this, SLOT( run() ) );
8080
// Add the icon to the toolbar
81-
mQGisIface->addToolBarIcon( mQActionPointer );
81+
mQGisIface->addRasterToolBarIcon( mQActionPointer );
8282
mQGisIface->addPluginToRasterMenu( tr( "&Heatmap" ), mQActionPointer );
8383

8484
}
@@ -108,8 +108,8 @@ void Heatmap::run()
108108
void Heatmap::unload()
109109
{
110110
// remove the GUI
111-
mQGisIface->removePluginMenu( "&Heatmap", mQActionPointer );
112-
mQGisIface->removeToolBarIcon( mQActionPointer );
111+
mQGisIface->removePluginRasterMenu( "&Heatmap", mQActionPointer );
112+
mQGisIface->removeRasterToolBarIcon( mQActionPointer );
113113
delete mQActionPointer;
114114
}
115115

0 commit comments

Comments
 (0)