diff --git a/winixd/plugins/thread/funthread.cpp b/winixd/plugins/thread/funthread.cpp index 0051cf3..d1f8ae5 100644 --- a/winixd/plugins/thread/funthread.cpp +++ b/winixd/plugins/thread/funthread.cpp @@ -100,19 +100,20 @@ void FunThread::PrepareThread(long file_id) { morm::Finder finder(model_connector); - thread_info->item_tab = finder. + finder. select(). where(). in(L"id", id_tab). eq(L"type", static_cast(Item::file)). - eq(L"content", L"file_type", WINIX_ITEM_FILETYPE_NONE). - get_vector(); + eq(L"content", L"file_type", WINIX_ITEM_FILETYPE_NONE); if( system->mounts.pmount->IsArg(thread_info->mount_par_thread, L"sort_desc") ) finder.raw("order by content.date_creation desc"); else finder.raw("order by content.date_creation asc"); + thread_info->item_tab = finder.get_vector(); + //db->GetItems(thread_info->item_tab, iq); system->CheckAccessToItems(thread_info->item_tab);