mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
When periodically checking for ui events, avoid creating a QofSession
if we don't already have one. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13512 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
afdb00a6d1
commit
5badb824e6
@ -303,9 +303,9 @@ gnc_ui_check_events (gpointer not_used)
|
|||||||
if (gtk_main_level() != 1)
|
if (gtk_main_level() != 1)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
session = gnc_get_current_session ();
|
if (!gnc_current_session_exist())
|
||||||
if (!session)
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
session = gnc_get_current_session ();
|
||||||
|
|
||||||
if (gnc_gui_refresh_suspended ())
|
if (gnc_gui_refresh_suspended ())
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user