From 3ddf61ef35e6302644210c93afa580ff5fc8bab6 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Thu, 20 Dec 2001 11:00:37 +0000 Subject: [PATCH] * src/app-file/gnc-file.c: suspend engine events when creating new session git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6397 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/app-file/gnc-file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app-file/gnc-file.c b/src/app-file/gnc-file.c index bdc70fc1ad..49b14af71b 100644 --- a/src/app-file/gnc-file.c +++ b/src/app-file/gnc-file.c @@ -71,7 +71,11 @@ static GNCSession * gnc_get_current_session_internal (void) { if (!current_session) + { + gnc_engine_suspend_events (); current_session = gnc_session_new (); + gnc_engine_resume_events (); + } return current_session; }