mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
do not try to open sources with write-permission if the session itself is unwritable
git-svn-id: svn://localhost/ardour2/branches/3.0@8633 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
954a3ddca1
commit
7a03f1c3e6
2 changed files with 7 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ class Source : public SessionObject
|
|||
int set_state (const XMLNode&, int version);
|
||||
|
||||
bool destructive() const { return (_flags & Destructive); }
|
||||
bool writable () const { return (_flags & Writable); }
|
||||
bool writable () const;
|
||||
virtual bool set_destructive (bool /*yn*/) { return false; }
|
||||
virtual bool length_mutable() const { return false; }
|
||||
|
||||
|
|
|
|||
|
|
@ -302,3 +302,9 @@ Source::dec_use_count ()
|
|||
g_atomic_int_exchange_and_add (&_use_count, -1);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool
|
||||
Source::writable () const
|
||||
{
|
||||
return (_flags & Writable) && _session.writable();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue