diff options
-rw-r--r-- | gtk2_ardour/editor_sources.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_sources.cc b/gtk2_ardour/editor_sources.cc index 3ade49ee55..5ffd23a203 100644 --- a/gtk2_ardour/editor_sources.cc +++ b/gtk2_ardour/editor_sources.cc @@ -321,7 +321,7 @@ EditorSources::remove_weak_region (boost::weak_ptr<ARDOUR::Region> r) TreeModel::Children rows = _model->children(); for (TreeModel::iterator i = rows.begin(); i != rows.end(); ++i) { boost::shared_ptr<ARDOUR::Region> rr = (*i)[_columns.region]; - if (rr = region) { + if (rr == region) { _model->erase(i); break; } |