Skip to content

Commit

Permalink
Modeler: Set default action to Export as Script Algorithm
Browse files Browse the repository at this point in the history
otherwise the button tooltip is not shown
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Sep 29, 2019
1 parent 86c8353 commit 7903889
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/modeler/ModelerDialog.py
Expand Up @@ -281,6 +281,7 @@ def __init__(self, model=None):
self.toolbutton_export_to_script.setPopupMode(QToolButton.InstantPopup)
self.export_to_script_algorithm_action = QAction(QCoreApplication.translate('ModelerDialog', 'Export as Script Algorithm…'))
self.toolbutton_export_to_script.addActions([self.export_to_script_algorithm_action])
self.toolbutton_export_to_script.setDefaultAction(self.export_to_script_algorithm_action)
self.mToolbar.insertWidget(self.mActionExportImage, self.toolbutton_export_to_script)
self.export_to_script_algorithm_action.triggered.connect(self.export_as_script_algorithm)

Expand Down

0 comments on commit 7903889

Please sign in to comment.