summaryrefslogtreecommitdiff
path: root/gtk2_ardour/floating_text_entry.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-03-05 16:42:40 +0100
committerRobin Gareus <robin@gareus.org>2017-03-05 16:45:55 +0100
commit9b6aebe842c0ceb0200de241c95c036b13f72f42 (patch)
tree48052caea5b13b5d5709ff63d056b538165d56e8 /gtk2_ardour/floating_text_entry.h
parentabdadb090645bf29f3296512473c91656d048302 (diff)
Prevent duplicate self-delete.
debug-prints indicat it was at least possible for the same Window to receive FloatingTextEntry::entry_focus_out twice (without idle)
Diffstat (limited to 'gtk2_ardour/floating_text_entry.h')
-rw-r--r--gtk2_ardour/floating_text_entry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/floating_text_entry.h b/gtk2_ardour/floating_text_entry.h
index 764d1fce37..d70185a8a6 100644
--- a/gtk2_ardour/floating_text_entry.h
+++ b/gtk2_ardour/floating_text_entry.h
@@ -49,6 +49,9 @@ private:
bool button_press (GdkEventButton*);
void changed ();
void populate_popup (Gtk::Menu*);
+ void idle_delete_self ();
+
+ std::list<sigc::connection> _connections;
/* handlers for window events */