mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Allow warning dialogs to be the dismiss-only variant
All existing dialogs are either QUESTION or WARNING. Allow INFO, ERROR and OTHER to remember being dismissed without asking a question.
This commit is contained in:
parent
ac2511bd5a
commit
76b2575848
@ -749,18 +749,12 @@ gnc_dialog_run (GtkDialog *dialog, const gchar *pref_name)
|
||||
return response;
|
||||
|
||||
/* Add in the checkboxes to find out if the answer should be remembered. */
|
||||
#if 0
|
||||
if (GTK_IS_MESSAGE_DIALOG(dialog))
|
||||
{
|
||||
GtkMessageType type;
|
||||
g_object_get(dialog, "message-type", &type, (gchar*)NULL);
|
||||
ask = (type == GTK_MESSAGE_QUESTION);
|
||||
ask = (type == GTK_MESSAGE_QUESTION || type == GTK_MESSAGE_WARNING);
|
||||
}
|
||||
else
|
||||
{
|
||||
ask = FALSE;
|
||||
}
|
||||
#endif
|
||||
perm = gtk_check_button_new_with_mnemonic
|
||||
(ask
|
||||
? _("Remember and don't _ask me again.")
|
||||
|
Loading…
Reference in New Issue
Block a user