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

Fixed infinite loop when adding a bookmark

- when history is empty
Closes #652
This commit is contained in:
nowrep 2012-11-27 18:01:30 +01:00
parent 899a7e3e64
commit 7a1bbd993d

View File

@ -446,7 +446,7 @@ void HistoryModel::init()
{
QSqlQuery query;
query.exec("SELECT MIN(date) FROM history");
if (!query.next()) {
if (query.size() <= 0) {
return;
}