fixed: meta and admin meta information were not saved in memory (in system.dirs)

when 'meta' winix function was used
added: to DbItemsQuery
       sort_index_asc and sort_index_date
       different sort type can be made by 'index' and by 'date'
		     



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1013 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2015-06-16 02:37:07 +00:00
parent f54df8d600
commit 632b49ab90
8 changed files with 34 additions and 16 deletions

View File

@@ -72,12 +72,8 @@ void ExportThread::SetBaseUrl(const std::wstring & url)
void ExportThread::AddMessage(const Message & message)
{
log << log1 << "export thread: a" << logsave << logend;
message_tab.insert(message_tab.end(), message);
WakeUpThread();
log << log1 << "export thread: b" << logsave << logend;
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2011-2014, Tomasz Sowa
* Copyright (c) 2011-2015, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -106,6 +106,7 @@ void read_from_db(long dir_id, int param, bool with_meta)
iq.sel_subject = true;
iq.sel_url = true;
iq.sel_sort_index = true;
iq.sort_date_asc = false; // !! FIXED ME we need an option for this
iq.sel_type = true;
iq.sel_file = true;
iq.sel_meta = with_meta;

View File

@@ -86,7 +86,7 @@ void FunThread::PrepareThread(long file_id)
DbItemQuery iq;
if( system->mounts.pmount->IsArg(thread_info->mount_par_thread, L"sort_desc") )
iq.sort_asc = false;
iq.sort_date_asc = false; // sort_index_asc we are ignoring
iq.WhereIdIn(id_tab);
iq.WhereType(Item::file);