mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 309943 - When unable to obtain a lock, no option to open another file
Currently when you get the message that GnuCash could not obtain a lock for the file to be opened you have four options... Open Read-Only, Create New File, Open Anyway, Quit This commit changes the 'Create new File' to 'Open with No File' which allows the user to then select... 'File->New' to create a new file, 'File->Open' to open a different file or one chosen from the history or 'File->Quit' to exit.
This commit is contained in:
parent
93f500bd4d
commit
9d99ebe30c
@ -695,7 +695,7 @@ gnc_file_query_save (GtkWindow *parent, gboolean can_cancel)
|
||||
|
||||
/* private utilities for file open; done in two stages */
|
||||
|
||||
#define RESPONSE_NEW 1
|
||||
#define RESPONSE_NO_FILE 1
|
||||
#define RESPONSE_OPEN 2
|
||||
#define RESPONSE_QUIT 3
|
||||
#define RESPONSE_READONLY 4
|
||||
@ -848,8 +848,8 @@ RESTART:
|
||||
|
||||
gnc_gtk_dialog_add_button(dialog, _("_Open Read-Only"),
|
||||
"document-revert", RESPONSE_READONLY);
|
||||
gnc_gtk_dialog_add_button(dialog, _("_Create New File"),
|
||||
"document-new", RESPONSE_NEW);
|
||||
gnc_gtk_dialog_add_button(dialog, _("_Open with No File"),
|
||||
"document-new", RESPONSE_NO_FILE);
|
||||
gnc_gtk_dialog_add_button(dialog, _("Open _Anyway"),
|
||||
"document-open", RESPONSE_OPEN);
|
||||
if (shutdown_cb)
|
||||
@ -861,7 +861,7 @@ RESTART:
|
||||
|
||||
if (rc == GTK_RESPONSE_DELETE_EVENT)
|
||||
{
|
||||
rc = shutdown_cb ? RESPONSE_QUIT : RESPONSE_NEW;
|
||||
rc = shutdown_cb ? RESPONSE_QUIT : RESPONSE_NO_FILE;
|
||||
}
|
||||
switch (rc)
|
||||
{
|
||||
@ -881,10 +881,9 @@ RESTART:
|
||||
break;
|
||||
default:
|
||||
/* Can't use the given file, so just create a new
|
||||
* database so that the user will get a window that
|
||||
* they can click "Exit" on.
|
||||
* Gnucash window so they can choose File->New, File->Open
|
||||
* or just "Exit".
|
||||
*/
|
||||
gnc_file_new (parent);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user