From 22f91c407ee52fcba649d2f608f900a7be6f99fc Mon Sep 17 00:00:00 2001 From: c-holtermann Date: Sat, 4 Jul 2020 22:26:35 +0200 Subject: [PATCH] use same order in comment as in definition of SessionOpenMode enum --- bindings/python/gnucash_core.py | 6 +++--- libgnucash/engine/qofsession.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/python/gnucash_core.py b/bindings/python/gnucash_core.py index 72837ba141..50eb6c41a0 100644 --- a/bindings/python/gnucash_core.py +++ b/bindings/python/gnucash_core.py @@ -191,14 +191,14 @@ class Session(GnuCashCoreClass): uri and if none is found, create it. If the file or database exists post a QOF_BACKED_STORE_EXISTS and return. @par + `SESSION_NEW_OVERWRITE`: Create a new file or database at the provided uri, + deleting any existing file or database. + @par `SESSION_READ_ONLY`: Find an existing file or database and open it without disturbing the lock if it exists or setting one if not. This will also set a flag on the book that will prevent many elements from being edited and will prevent the backend from saving any edits. @par - `SESSION_NEW_OVERWRITE`: Create a new file or database at the provided uri, - deleting any existing file or database. - @par `SESSION_BREAK_LOCK`: Find an existing file or database, lock it, and open it. If there is already a lock replace it with a new one for this session. diff --git a/libgnucash/engine/qofsession.h b/libgnucash/engine/qofsession.h index 4bab7f0fd9..e01d95a653 100644 --- a/libgnucash/engine/qofsession.h +++ b/libgnucash/engine/qofsession.h @@ -164,14 +164,14 @@ void qof_session_swap_data (QofSession *session_1, QofSession *session_2); * uri and if none is found, create it. If the file or database exists post a * QOF_BACKED_STORE_EXISTS and return. * @par + * `SESSION_NEW_OVERWRITE`: Create a new file or database at the provided uri, + * deleting any existing file or database. + * @par * `SESSION_READ_ONLY`: Find an existing file or database and open it without * disturbing the lock if it exists or setting one if not. This will also set a * flag on the book that will prevent many elements from being edited and will * prevent the backend from saving any edits. * @par - * `SESSION_NEW_OVERWRITE`: Create a new file or database at the provided uri, - * deleting any existing file or database. - * @par * `SESSION_BREAK_LOCK`: Find an existing file or database, lock it, and open * it. If there is already a lock replace it with a new one for this session. *