Skip to content
Permalink
Browse files

don't duplicate Menus entry in settings

  • Loading branch information
alexbruy committed Mar 20, 2016
1 parent 76296c8 commit 8afd1103c12b7e192de55903797153b15465c174
Showing with 4 additions and 3 deletions.
  1. +2 −2 python/plugins/processing/gui/ConfigDialog.py
  2. +2 −1 python/plugins/processing/gui/menus.py
@@ -37,7 +37,7 @@

from processing.core.ProcessingConfig import ProcessingConfig, Setting
from processing.core.Processing import Processing
from processing.gui.menus import updateMenus
from processing.gui.menus import updateMenus, defaultMenuEntries, menusSettingsGroup


pluginPath = os.path.split(os.path.dirname(__file__))[0]
@@ -114,7 +114,7 @@ def fillTree(self):
emptyItem.setEditable(False)
rootItem.insertRow(0, [providersItem, emptyItem])
for group in settings.keys():
if group in priorityKeys:
if group in priorityKeys or group == menusSettingsGroup:
continue

groupItem = QStandardItem(group)
@@ -6,6 +6,7 @@
from qgis.utils import iface

algorithmsToolbar = None
menusSettingsGroup = 'Menus'

defaultMenuEntries = {}
vectorMenu = Processing.tr('Vect&or')
@@ -105,7 +106,7 @@ def initializeMenus():
for provider in Processing.providers:
for alg in provider.algs:
d = defaultMenuEntries.get(alg.commandLineName(), "")
setting = Setting("Menus", "MENU_" + alg.commandLineName(), alg.name, d)
setting = Setting(menusSettingsGroup, "MENU_" + alg.commandLineName(), alg.name, d)
ProcessingConfig.addSetting(setting)

ProcessingConfig.readSettings()

0 comments on commit 8afd110

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