Skip to content

Commit

Permalink
processing: only reset existing menu 'settings' (followup e78fc62)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 3, 2017
1 parent 2c8e03d commit 008f385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/ConfigDialog.py
Expand Up @@ -256,6 +256,8 @@ def resetMenusToDefaults(self):
for provider in providers:
for alg in provider.algs:
d = defaultMenuEntries.get(alg.commandLineName(), "")
if "MENU_" + alg.commandLineName() not in ProcessingConfig.settings:
continue
setting = ProcessingConfig.settings["MENU_" + alg.commandLineName()]
item = self.items[setting]
item.setData(d, Qt.EditRole)
Expand Down

0 comments on commit 008f385

Please sign in to comment.