From 5adcc6b4d92e79c75d9090746a96ee87f36986f1 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 27 Jan 2017 16:29:03 +0100 Subject: [PATCH] LineEdit: Block mouse double click when not focused --- src/lib/3rdparty/lineedit.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/3rdparty/lineedit.cpp b/src/lib/3rdparty/lineedit.cpp index 73505227b..8f980e35c 100644 --- a/src/lib/3rdparty/lineedit.cpp +++ b/src/lib/3rdparty/lineedit.cpp @@ -392,6 +392,10 @@ void LineEdit::mouseReleaseEvent(QMouseEvent* event) void LineEdit::mouseDoubleClickEvent(QMouseEvent* event) { + if (!hasFocus()) { + return; + } + if (event->buttons() == Qt::LeftButton && qzSettings->selectAllOnDoubleClick) { selectAll(); return;