summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchCanvas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PatchCanvas.cpp')
-rw-r--r--src/gui/PatchCanvas.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index beb2da23..d3d8c5c4 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -606,6 +606,18 @@ PatchCanvas::canvas_event(GdkEvent* event)
return (ret ? true : Canvas::canvas_event(event));
}
+void
+PatchCanvas::clear_selection()
+{
+ const App& app = App::instance();
+ PatchWindow* win = app.window_factory()->patch_window(_patch);
+ if (win) {
+ win->doc_textview()->hide();
+ }
+
+ FlowCanvas::Canvas::clear_selection();
+}
+
#define FOREACH_ITEM(iter, coll) \
for (list<boost::shared_ptr<Item> >::iterator (iter) = coll.begin(); \
(iter) != coll.end(); ++(iter))