Skip to content
Permalink
Browse files

Process deleteLater events before recreating processing menus

  • Loading branch information
arnaud-morvan committed Aug 22, 2016
1 parent 0967119 commit e716bae82f8c62996121f13b05f6c146e836a519
Showing with 3 additions and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/ConfigDialog.py
  2. +2 −0 python/plugins/processing/gui/menus.py
@@ -190,7 +190,7 @@ def fillTreeUsingProviders(self):
"""
Filter 'Menus' items
"""
menusItem = QStandardItem(self.tr('Menus (requires restart)'))
menusItem = QStandardItem(self.tr('Menus'))
icon = QIcon(os.path.join(pluginPath, 'images', 'menu.png'))
menusItem.setIcon(icon)
menusItem.setEditable(False)
@@ -1,4 +1,5 @@
import os
from qgis.PyQt.QtCore import QCoreApplication
from qgis.PyQt.QtWidgets import QAction, QMenu
from PyQt4.QtGui import QIcon
from processing.core.alglist import algList
@@ -127,6 +128,7 @@ def initializeMenus():

def updateMenus():
removeMenus()
QCoreApplication.processEvents()
createMenus()


0 comments on commit e716bae

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