mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Move query execution and model setup to the right scope
This commit is contained in:
parent
255e51da86
commit
6438c9210f
@ -637,6 +637,10 @@ void ComicModel::setupModelData(const SearchModifiers modifier, const QString &f
|
||||
selectQuery.prepare(queryString.c_str());
|
||||
selectQuery.bindValue(":limit", 500); //TODO, load this value from settings
|
||||
result.bindValues(selectQuery);
|
||||
|
||||
selectQuery.exec();
|
||||
|
||||
setupModelData(selectQuery);
|
||||
} catch (const std::exception &e) {
|
||||
QLOG_ERROR() << "Unable to parse query: " << e.what();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user