summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PatchWindow.cpp')
-rw-r--r--src/gui/PatchWindow.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp
index 361e525a..84d86f2b 100644
--- a/src/gui/PatchWindow.cpp
+++ b/src/gui/PatchWindow.cpp
@@ -618,10 +618,7 @@ PatchWindow::on_hide()
bool
PatchWindow::on_event(GdkEvent* event)
{
- if (_view->canvas()->canvas_event(event))
- return true;
- else
- return Gtk::Window::on_event(event);
+ return (_view->canvas()->canvas_event(event)) ? true : Gtk::Window::on_event(event);
}