Skip to content
Permalink
Browse files

[processing] Throw warning when menu item links are broken

  • Loading branch information
nyalldawson committed Apr 30, 2018
1 parent 3bfc93d commit cad0f3d5b746252926447da78dcdc9088c6dfbda
Showing with 6 additions and 1 deletion.
  1. +6 −1 python/plugins/processing/gui/menus.py
@@ -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
@@ -132,6 +132,11 @@


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

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

0 comments on commit cad0f3d

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