diff --git a/shared/sqlitesearch.cpp b/shared/sqlitesearch.cpp index 749f4ca..2c2003d 100644 --- a/shared/sqlitesearch.cpp +++ b/shared/sqlitesearch.cpp @@ -183,6 +183,11 @@ QSqlQuery SqliteSearch::makeSqlQuery(const LooqsQuery &query) whereSql + " " + sortSql; } + if(query.getLimit() > 0) + { + prepSql += " LIMIT " + QString::number(query.getLimit()); + } + QSqlQuery dbquery(*db); dbquery.prepare(prepSql); for(const QString &value : bindValues)