Commit 86f23452 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent a6529e6b
......@@ -626,7 +626,7 @@ void AddresseeLineEditPrivate::doCompletion(bool ctrlT)
if (!match.isEmpty()) {
if (match != m_searchString) {
QString adds = m_previousAddresses + match;
const QString adds = m_previousAddresses + match;
q->callSetCompletedText(adds);
}
} else {
......@@ -692,7 +692,7 @@ void AddresseeLineEditPrivate::slotPopupCompletion(const QString &completion)
void AddresseeLineEditPrivate::slotReturnPressed(const QString &)
{
if (!q->completionBox()->selectedItems().isEmpty()) {
slotPopupCompletion(q->completionBox()->selectedItems().first()->text());
slotPopupCompletion(q->completionBox()->selectedItems().constFirst()->text());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment