mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
LineEdit: Block mouse double click when not focused
This commit is contained in:
parent
e134abfda7
commit
5adcc6b4d9
4
src/lib/3rdparty/lineedit.cpp
vendored
4
src/lib/3rdparty/lineedit.cpp
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user