diff options
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/file_source.h | 2 | ||||
-rw-r--r-- | libs/ardour/ardour/session.h | 4 | ||||
-rw-r--r-- | libs/ardour/ardour/source.h | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/libs/ardour/ardour/file_source.h b/libs/ardour/ardour/file_source.h index fdf7473c63..82a54094ef 100644 --- a/libs/ardour/ardour/file_source.h +++ b/libs/ardour/ardour/file_source.h @@ -68,7 +68,7 @@ protected: virtual int move_dependents_to_trash() { return 0; } bool removable () const; - + Glib::ustring _path; Glib::ustring _take_id; bool _file_is_new; diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 7da21274e1..cdf6547674 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -248,7 +248,8 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable std::string raid_path () const; void set_snap_name (); - + + bool writable() const { return _writable; } void set_dirty (); void set_clean (); bool dirty() const { return _state_of_the_state & Dirty; } @@ -1041,6 +1042,7 @@ class Session : public PBD::StatefulDestructible, public boost::noncopyable float _meter_falloff; bool _non_soloed_outs_muted; uint32_t _listen_cnt; + bool _writable; void set_worst_io_latencies (); void set_worst_io_latencies_x (IOChange, void *) { diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index d6c68edf90..a61af84ac8 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -79,7 +79,7 @@ class Source : public SessionObject, public boost::noncopyable int set_state (const XMLNode&); bool destructive() const { return (_flags & Destructive); } - bool writable () const { return _flags & Writable; } + bool writable () const { return (_flags & Writable); } virtual bool set_destructive (bool /*yn*/) { return false; } virtual bool length_mutable() const { return false; } @@ -128,6 +128,7 @@ class Source : public SessionObject, public boost::noncopyable private: uint32_t _in_use; + void fix_writable_flags (); }; } |