From c2084122456cc0228d9ba2ae183fd8e6b8c4c29c Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 26 Mar 2014 19:09:41 +0000 Subject: [PATCH] disable double-click pop-up menu in selection mode --- Fltk/openglWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fltk/openglWindow.cpp b/Fltk/openglWindow.cpp index 2399c237b2..6a83afb6aa 100644 --- a/Fltk/openglWindow.cpp +++ b/Fltk/openglWindow.cpp @@ -342,7 +342,8 @@ int openglWindow::handle(int event) return Fl_Gl_Window::handle(event); case FL_PUSH: - if(Fl::event_clicks() == 1){ // double-click + if(Fl::event_clicks() == 1 && !selectionMode){ + // double-click and not in selection mode status_options_cb(0, (void*)"quick_access"); Fl::event_clicks(-1); return 1; -- GitLab