projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
156f01c
)
ensure that Editor::entered_track is reset during session deletion to avoid a crash...
author
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 30 Jun 2014 16:31:01 +0000
(12:31 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 30 Jun 2014 17:58:46 +0000
(13:58 -0400)
gtk2_ardour/editor.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor.cc
b/gtk2_ardour/editor.cc
index ea586405d83b5bbf20f158fb8c964b170a5a7400..042d03fa574f9e7ad80c0c5e82e81cab2e834fd9 100644
(file)
--- a/
gtk2_ardour/editor.cc
+++ b/
gtk2_ardour/editor.cc
@@
-4874,6
+4874,10
@@
Editor::add_routes (RouteList& routes)
void
Editor::timeaxisview_deleted (TimeAxisView *tv)
{
+ if (tv == entered_track) {
+ entered_track = 0;
+ }
+
if (_session && _session->deletion_in_progress()) {
/* the situation is under control */
return;
@@
-4885,10
+4889,6
@@
Editor::timeaxisview_deleted (TimeAxisView *tv)
_routes->route_removed (tv);
- if (tv == entered_track) {
- entered_track = 0;
- }
-
TimeAxisView::Children c = tv->get_child_list ();
for (TimeAxisView::Children::const_iterator i = c.begin(); i != c.end(); ++i) {
if (entered_track == i->get()) {