diff --git a/YACReaderLibrary/db/folder_model.cpp b/YACReaderLibrary/db/folder_model.cpp index 76a82ec2..42f13aad 100644 --- a/YACReaderLibrary/db/folder_model.cpp +++ b/YACReaderLibrary/db/folder_model.cpp @@ -716,13 +716,14 @@ void FolderModelProxy::setupFilteredModelData() queryString += " AND f.id <> 1 ORDER BY f.parentId,f.name"; QLOG_ERROR() << "not implemented"; break; - - selectQuery.prepare(queryString.c_str()); - result.bindValues(selectQuery); } } catch (const std::exception &e) { QLOG_ERROR() << "Unable to parse query: " << e.what(); } + + selectQuery.prepare(queryString.c_str()); + selectQuery.bindValues(selectQuery); + selectQuery.exec(); QLOG_DEBUG() << selectQuery.lastError() << "--";