mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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.prepare(queryString.c_str());
|
||||||
selectQuery.bindValue(":limit", 500); //TODO, load this value from settings
|
selectQuery.bindValue(":limit", 500); //TODO, load this value from settings
|
||||||
result.bindValues(selectQuery);
|
result.bindValues(selectQuery);
|
||||||
|
|
||||||
|
selectQuery.exec();
|
||||||
|
|
||||||
|
setupModelData(selectQuery);
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
QLOG_ERROR() << "Unable to parse query: " << e.what();
|
QLOG_ERROR() << "Unable to parse query: " << e.what();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user