Skip to content


[processing] Throw warning when menu item links are broken
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 30, 2018
1 parent 3bfc93d commit cad0f3d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/plugins/processing/gui/
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
from processing.gui.MessageDialog import MessageDialog
from processing.gui.AlgorithmDialog import AlgorithmDialog
from qgis.utils import iface
from qgis.core import QgsApplication
from qgis.core import QgsApplication, QgsMessageLog
from processing.gui.MessageBarProgress import MessageBarProgress
from processing.gui.AlgorithmExecutor import execute
from processing.gui.Postprocessing import handleAlgorithmResults
Expand Down Expand Up @@ -132,6 +132,11 @@

def initializeMenus():
for m in defaultMenuEntries.keys():
alg = QgsApplication.processingRegistry().algorithmById(m)
if alg is None or != m:
QgsMessageLog.logMessage('Invalid algorithm ID for menu: {}').format(m),'Processing'))

for provider in QgsApplication.processingRegistry().providers():
for alg in provider.algorithms():
d = defaultMenuEntries.get(, "")
Expand Down

0 comments on commit cad0f3d

Please sign in to comment.