fix(ui): do not call QList::first() on a temporary value

This commit is contained in:
Oleg Shparber 2019-01-26 23:31:44 -05:00
parent 15c490ebaf
commit 0be8a77db5

View File

@ -678,7 +678,7 @@ void MainWindow::setupSearchBoxCompletions()
if (docset->keywords().isEmpty())
continue;
completions << docset->keywords().first() + QLatin1Char(':');
completions << docset->keywords().constFirst() + QLatin1Char(':');
}
ui->lineEdit->setCompletions(completions);