diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/PatchCanvas.cpp | 4 | ||||
-rw-r--r-- | src/gui/PatchWindow.cpp | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 644f95f6..932b0ef9 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -540,13 +540,13 @@ PatchCanvas::canvas_event(GdkEvent* event) case GDK_Delete: destroy_selection(); ret = true; - break; + break; case GDK_e: if (event->key.state == 0) { _patch->set_editable(!_patch->get_editable()); ret = true; } - default: break; + default: break; } default: break; 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); } |