add Session::loading() to allow easy detection of "session is being loaded" condition
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 13 Apr 2016 21:41:39 +0000 (17:41 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 31 May 2016 19:30:40 +0000 (15:30 -0400)
libs/ardour/ardour/session.h

index 786751dea52a64f2fc80659dde8477e5e58e372c..6f2c0f1fa90e8dcf87430693b83ce024b228b36a 100644 (file)
@@ -211,6 +211,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
        bool deletion_in_progress() const { return _state_of_the_state & Deletion; }
        bool routes_deletion_in_progress() const { return _route_deletion_in_progress; }
        bool peaks_cleanup_in_progres() const { return _state_of_the_state & PeakCleanup; }
+       bool loading () const { return _state_of_the_state & Loading; }
 
        PBD::Signal0<void> DirtyChanged;