mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Add operation_in_progress() method.
git-svn-id: svn://localhost/ardour2/branches/3.0@12704 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
daf84122ca
commit
30573893a9
2 changed files with 8 additions and 0 deletions
|
|
@ -716,6 +716,8 @@ class Session : public PBD::StatefulDestructible, public PBD::ScopedConnectionLi
|
|||
return _current_trans_quarks;
|
||||
}
|
||||
|
||||
bool operation_in_progress (GQuark) const;
|
||||
|
||||
void add_commands (std::vector<Command*> const & cmds);
|
||||
|
||||
std::map<PBD::ID,PBD::StatefulDestructible*> registry;
|
||||
|
|
|
|||
|
|
@ -4758,3 +4758,9 @@ Session::next_control_id () const
|
|||
{
|
||||
return ntracks() + nbusses() + 1;
|
||||
}
|
||||
|
||||
bool
|
||||
Session::operation_in_progress (GQuark op) const
|
||||
{
|
||||
return (find (_current_trans_quarks.begin(), _current_trans_quarks.end(), op) != _current_trans_quarks.end());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue