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 e716bae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
@@ -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.