From 68025a0b1e16514b7e4ebcaa350b6a6570edca25 Mon Sep 17 00:00:00 2001 From: g_j_m Date: Sat, 23 Apr 2005 12:26:50 +0000 Subject: [PATCH] Return the menu id instead of 0 git-svn-id: http://svn.osgeo.org/qgis/trunk@3199 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/qgisapp.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/qgisapp.cpp b/src/qgisapp.cpp index 4befc189301..bdddc3fc195 100644 --- a/src/qgisapp.cpp +++ b/src/qgisapp.cpp @@ -3734,10 +3734,7 @@ void QgisApp::populateMenuMaps() } int QgisApp::addPluginMenu(QString menuText, QPopupMenu *menu) { - mPluginMenu->insertItem(menuText, menu); - // added cuz windows wants the return - // TODO - fix this up later - return 0; + return mPluginMenu->insertItem(menuText, menu); } int QgisApp::addPluginToolBarIcon (QAction * qAction)