Skip to content

Commit ed7aaee

Browse files
committed
fix to use cancel button
1 parent e7106a7 commit ed7aaee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

guake/boxes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,11 +715,12 @@ def on_rename(self, user_data):
715715
def on_tab_color_change(self, user_data):
716716
HidePrevention(self.get_toplevel()).prevent()
717717
dialog = Gtk.ColorChooserDialog(_("Select Color"), self.notebook.guake.window)
718-
if dialog.run() == Gtk.ResponseType.OK:
718+
response = dialog.run()
719+
if response == Gtk.ResponseType.OK:
719720
color = dialog.get_rgba()
720-
dialog.destroy()
721721
page_num = self.notebook.find_tab_index_by_label(self)
722722
self.notebook.color_page(page_num, color, True)
723+
dialog.destroy()
723724
HidePrevention(self.get_toplevel()).allow()
724725
self.grab_focus_on_last_focused_terminal()
725726

0 commit comments

Comments
 (0)