1
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:
David Rosca 2017-01-27 16:29:03 +01:00
parent e134abfda7
commit 5adcc6b4d9

View File

@ -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;