Skip to content

Commit

Permalink
Fix prompt on close tab
Browse files Browse the repository at this point in the history
PromptQuitDialog creation had wrong number of arguments, last argument is unused in this situation so passed None into it.
  • Loading branch information
Davidy22 authored and gsemet committed Sep 10, 2021
1 parent 7f4920f commit 0eecd43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion guake/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def delete_page(self, page_num, kill=True, prompt=0):
procs = self.get_running_fg_processes_count_page(page_num)
if prompt == 2 or (prompt == 1 and procs > 0):
# TODO NOTEBOOK remove call to guake
if not PromptQuitDialog(self.guake.window, procs, -1).close_tab():
if not PromptQuitDialog(self.guake.window, procs, -1, None).close_tab():
return

page = self.get_nth_page(page_num)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
release_summary: >
Fixes prompting when closing a tab.
fixes:
- |
- Fixes #1863

0 comments on commit 0eecd43

Please sign in to comment.