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:
parent
899a7e3e64
commit
7a1bbd993d
@ -446,7 +446,7 @@ void HistoryModel::init()
|
||||
{
|
||||
QSqlQuery query;
|
||||
query.exec("SELECT MIN(date) FROM history");
|
||||
if (!query.next()) {
|
||||
if (query.size() <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user