Skip to content

Commit

Permalink
[processing] Fix misleading "cancel" label shown for "close" button
Browse files Browse the repository at this point in the history
This button isn't a cancel button - it just closes the dialog, and
doesn't abort any changes which have already been made as a result
of running the algorithm through the dialog.
  • Loading branch information
nyalldawson committed Mar 16, 2021
1 parent 3e09ce1 commit 35a781d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -83,8 +83,6 @@ def __init__(self, alg, in_place=False, parent=None):
self.buttonBox().button(QDialogButtonBox.Ok).setText(
QCoreApplication.translate("AlgorithmDialog", "Modify Selected Features")
if has_selection else QCoreApplication.translate("AlgorithmDialog", "Modify All Features"))
self.buttonBox().button(QDialogButtonBox.Close).setText(
QCoreApplication.translate("AlgorithmDialog", "Cancel"))
self.setWindowTitle(self.windowTitle() + ' | ' + self.active_layer.name())

self.updateRunButtonVisibility()
Expand Down

0 comments on commit 35a781d

Please sign in to comment.