Skip to content

Commit

Permalink
[processing] harmonize results viewer action behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 13, 2018
1 parent a1a4553 commit 1994c44
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/plugins/processing/ProcessingPlugin.py
Expand Up @@ -211,14 +211,15 @@ def initGui(self):
self.menu.addAction(self.historyAction)
self.toolbox.processingToolbar.addAction(self.historyAction)

self.resultsAction = self.resultsDock.toggleViewAction()
self.resultsAction.setObjectName('resultsAction')
self.resultsAction.setIcon(
QgsApplication.getThemeIcon("/processingResult.svg"))
self.resultsAction.setText(self.tr('&Results Viewer'))
self.resultsAction = QAction(
QgsApplication.getThemeIcon("/processingResult.svg"),
self.tr('&Results Viewer'), self.iface.mainWindow())
self.resultsAction.setCheckable(True)
self.iface.registerMainWindowAction(self.resultsAction, 'Ctrl+Alt+R')
self.menu.addAction(self.resultsAction)
self.toolbox.processingToolbar.addAction(self.resultsAction)
self.resultsDock.visibilityChanged.connect(self.resultsAction.setChecked)
self.resultsAction.toggled.connect(self.resultsDock.setUserVisible)

self.optionsAction = QAction(
QgsApplication.getThemeIcon("/mActionOptions.svg"),
Expand Down

0 comments on commit 1994c44

Please sign in to comment.