1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

LineEdit: Fix enabling Select All action

This fixes Select All action in LocationBar and WebSearchBar
This commit is contained in:
David Rosca 2014-09-17 17:58:14 +02:00
parent 8c8789a05f
commit c45b301844

View File

@ -166,7 +166,7 @@ QMenu* LineEdit::createContextMenu(QAction* pasteAndGoAction)
}
action = popup->addAction(QIcon::fromTheme(QSL("edit-select-all")), tr("Select All") + ACCEL_KEY(QKeySequence::SelectAll));
action->setEnabled(!text().isEmpty() && selectedText() == text());
action->setEnabled(!text().isEmpty() && selectedText() != text());
connect(action, SIGNAL(triggered()), SLOT(selectAll()));
#if !defined(QT_NO_IM) && QT_VERSION < 0x050000