diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-19 00:24:13 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-06-19 00:24:13 +0000 |
commit | a64926234f8a172adea2dc01280b8a9ce3f74fd8 (patch) | |
tree | 43e7f439e4e1b83d066738ce2aa5358b30aba2a3 /gtk2_ardour | |
parent | 0622d3c06ac7aa885e8c20274885282af453c64c (diff) |
prevent periodic auto-save from causing GUI deadlock waiting for the Locations lock to be released while export-ranges happens. this fix might be updated with a better one later.
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3479 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 2800c68037..b5a19e388e 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -532,6 +532,14 @@ ARDOUR_UI::save_ardour_state () gint ARDOUR_UI::autosave_session () { + if (g_main_depth() > 1) { + /* inside a recursive main loop, + give up because we may not be able to + take a lock. + */ + return 1; + } + if (!Config->get_periodic_safety_backups()) return 1; |