aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-09-17 20:41:58 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2011-09-17 20:41:58 +0200
commit97f758a93015831db9c7ff0944840e5181434b2b (patch)
tree2f395367f95018a4aab0902030ec91c21694b59c /src/uicmd.cc
parente873640c4a9f15af4d46fa95236e60e7e5a219e9 (diff)
add show_quit_dialog dillorc option
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 5ce7afb4..38225047 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -433,7 +433,7 @@ static void win_cb (Fl_Widget *w, void *cb_data) {
CustTabs *tabs = (CustTabs*) cb_data;
int choice = 1, ntabs = tabs->num_tabs();
- if (ntabs > 1)
+ if (prefs.show_quit_dialog && ntabs > 1)
choice = a_Dialog_choice5("Window contains more than one tab.",
"Close", "Cancel", NULL, NULL, NULL);
if (choice == 1)
@@ -573,7 +573,7 @@ void a_UIcmd_close_all_bw(void *)
BrowserWindow *bw;
int choice = 1;
- if (a_Bw_num() > 1)
+ if (prefs.show_quit_dialog && a_Bw_num() > 1)
choice = a_Dialog_choice5("More than one open tab or window.",
"Quit", "Cancel", NULL, NULL, NULL);
if (choice == 1)