mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove "closing last window" confirmation dialog and corresponding
warning (reverting r14580). Fixes #355392. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14944 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4e58b1caa2
commit
56dde9935b
@ -997,13 +997,6 @@ gnc_main_window_delete_event (GtkWidget *window,
|
||||
{
|
||||
static gboolean already_dead = FALSE;
|
||||
QofSession *session;
|
||||
GtkWidget *dialog;
|
||||
gint response;
|
||||
const gchar *title = _("Quit GnuCash?");
|
||||
const gchar *message =_("You are attempting to close the last "
|
||||
"GnuCash window. Doing so will quit the "
|
||||
"application. Are you sure that this is "
|
||||
"what you want to do?");
|
||||
|
||||
if (already_dead)
|
||||
return TRUE;
|
||||
@ -1027,26 +1020,10 @@ gnc_main_window_delete_event (GtkWidget *window,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
dialog = gtk_message_dialog_new(GTK_WINDOW(window),
|
||||
GTK_DIALOG_MODAL,
|
||||
GTK_MESSAGE_WARNING,
|
||||
GTK_BUTTONS_NONE,
|
||||
"%s", title);
|
||||
gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(dialog),
|
||||
"%s", message);
|
||||
gtk_dialog_add_buttons(GTK_DIALOG(dialog),
|
||||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
||||
GTK_STOCK_QUIT, GTK_RESPONSE_OK,
|
||||
NULL);
|
||||
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
|
||||
response = gnc_dialog_run (GTK_DIALOG (dialog), "close_last_window");
|
||||
gtk_widget_destroy(dialog);
|
||||
/* Tell gnucash to shutdown cleanly */
|
||||
g_timeout_add(250, gnc_main_window_timed_quit, NULL);
|
||||
already_dead = TRUE;
|
||||
|
||||
if (response == GTK_RESPONSE_OK) {
|
||||
/* Tell gnucash to shutdown cleanly */
|
||||
g_timeout_add(250, gnc_main_window_timed_quit, NULL);
|
||||
already_dead = TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -15,19 +15,6 @@
|
||||
</locale>
|
||||
</schema>
|
||||
|
||||
<schema>
|
||||
<key>/schemas/apps/gnucash/general/warnings/close_last_window</key>
|
||||
<applyto>/apps/gnucash/general/warnings/permanent/close_last_window</applyto>
|
||||
<applyto>/apps/gnucash/general/warnings/temporary/close_last_window</applyto>
|
||||
<owner>gnucash</owner>
|
||||
<type>int</type>
|
||||
<default>0</default>
|
||||
<locale name="C">
|
||||
<short>Exit GnuCash</short>
|
||||
<long>This dialog is presented when you attempt to close the last GnuCash window.</long>
|
||||
</locale>
|
||||
</schema>
|
||||
|
||||
<schema>
|
||||
<key>/schemas/apps/gnucash/general/warnings/mark_split_unreconciled</key>
|
||||
<applyto>/apps/gnucash/general/warnings/permanent/mark_split_unreconciled</applyto>
|
||||
|
Loading…
Reference in New Issue
Block a user