summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_sources.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-06 15:51:00 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-06 15:54:00 -0700
commit75260f9c9ba83ffbc46844ebaa5c0e661dc5aeab (patch)
treea23c4685811b65e24dec1b4781e1bdaa65a9bc61 /gtk2_ardour/editor_sources.cc
parentdd46dfe8d2d5aa57a7bbf14da5b992404fed8b27 (diff)
fix (potentially serious) typo that confused comparison with assignment
Diffstat (limited to 'gtk2_ardour/editor_sources.cc')
-rw-r--r--gtk2_ardour/editor_sources.cc2
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;
}