From c7db860a0a2c40744b8c37fad9e2a23d39c95806 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Mon, 7 Nov 2016 22:00:20 -0800 Subject: [PATCH] remote: make the action button the default Closes #622 Reported-by: Joshua Taylor Signed-off-by: David Aguilar --- cola/widgets/remote.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cola/widgets/remote.py b/cola/widgets/remote.py index 75e07723..19334994 100644 --- a/cola/widgets/remote.py +++ b/cola/widgets/remote.py @@ -165,9 +165,7 @@ class RemoteActionDialog(standard.Dialog): tooltip = N_('Configure the remote branch as the the new upstream') self.upstream_checkbox = qtutils.checkbox(text=text, tooltip=tooltip) - if icon is None: - icon = icons.ok() - self.action_button = qtutils.create_button(text=title, icon=icon) + self.action_button = qtutils.ok_button(title, icon=icon) self.close_button = qtutils.close_button() self.buttons = utils.Group(self.action_button, self.close_button) -- 2.11.4.GIT