mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 798948 - XML file corrupted by saving twice in extremely short period
Prevent reentrance with gnc_file_save_in_progress().
This commit is contained in:
parent
75fb523c36
commit
38118a2ad6
@ -381,7 +381,8 @@ gnc_main_window_cmd_file_save (GSimpleAction *simple,
|
||||
|
||||
g_return_if_fail (data != NULL);
|
||||
|
||||
if (!gnc_main_window_all_finish_pending ())
|
||||
if (!gnc_main_window_all_finish_pending () ||
|
||||
gnc_file_save_in_progress())
|
||||
return;
|
||||
|
||||
gnc_window_set_progressbar_window (GNC_WINDOW(data->window));
|
||||
@ -398,7 +399,8 @@ gnc_main_window_cmd_file_save_as (GSimpleAction *simple,
|
||||
|
||||
g_return_if_fail (data != NULL);
|
||||
|
||||
if (!gnc_main_window_all_finish_pending ())
|
||||
if (!gnc_main_window_all_finish_pending () ||
|
||||
gnc_file_save_in_progress())
|
||||
return;
|
||||
|
||||
gnc_window_set_progressbar_window (GNC_WINDOW(data->window));
|
||||
|
Loading…
Reference in New Issue
Block a user