Skip to content

Commit

Permalink
Process deleteLater events before recreating processing menus
Browse files Browse the repository at this point in the history
  • 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.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ConfigDialog.py
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/menus.py
@@ -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
Expand Down Expand Up @@ -127,6 +128,7 @@ def initializeMenus():

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


Expand Down

0 comments on commit e716bae

Please sign in to comment.