summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyeditor.cc
diff options
context:
space:
mode:
authorMathias Buhr <napcode@apparatus.de>2016-03-28 20:08:35 +0200
committerPaul Davis <paul@linuxaudiosystems.com>2016-03-30 07:29:09 -0400
commit1316e85d4143a1f77ad911028bb929dcc3c83c0f (patch)
treef5b434119569b9aa890fa7ba81e76408faf45949 /gtk2_ardour/keyeditor.cc
parent25dc92b31e7f1cdf0de2cb9bca6e116df388d856 (diff)
Don't crash when keyeditor is empty
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r--gtk2_ardour/keyeditor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc
index 8c4aaa1911..56044c1c9a 100644
--- a/gtk2_ardour/keyeditor.cc
+++ b/gtk2_ardour/keyeditor.cc
@@ -496,5 +496,8 @@ void
KeyEditor::search_string_updated (const std::string& filter)
{
filter_string = boost::to_lower_copy(filter);
- current_tab ()->filter->refilter ();
+ KeyEditor::Tab* tab = current_tab ();
+ if (tab) {
+ tab->filter->refilter ();
+ }
}