mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-09 22:04:21 +03:00
fix(ui): do not call QList::first() on a temporary value
This commit is contained in:
parent
15c490ebaf
commit
0be8a77db5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user