mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
LineEdit: Fix enabling Select All action
This fixes Select All action in LocationBar and WebSearchBar
This commit is contained in:
parent
8c8789a05f
commit
c45b301844
2
src/lib/3rdparty/lineedit.cpp
vendored
2
src/lib/3rdparty/lineedit.cpp
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user