fixed: find_ticket_value (in plugins/ticket/templates.cpp)
should find the first item (can be more than one item with the same 'param') fixed: added sorting tickets params in ReadTicketParams() (in plugins/ticket/ticketinfo.cpp) fixed: plugin should have its own 'PluginInfo info' struct a plugin's function can call another plugin's functions added: removing tickets files/images added: removing threads changed: rm function will call WINIX_FILE_REMOVED now when deleting directories git-svn-id: svn://ttmath.org/publicrep/winix/trunk@710 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -178,20 +178,6 @@ void RemoveFile(PluginInfo & info)
|
||||
|
||||
void RemoveDir(PluginInfo & info)
|
||||
{
|
||||
DbItemQuery query;
|
||||
std::vector<long> items;
|
||||
size_t i;
|
||||
|
||||
// !! may only files can be retrieved here?
|
||||
query.SetAll(false, false);
|
||||
query.WhereParentId(info.l1);
|
||||
info.db->GetItems(items, query);
|
||||
|
||||
// removing childs
|
||||
for(i=0 ; i<items.size() ; ++i)
|
||||
stats.RemoveItem(items[i]);
|
||||
|
||||
// removing the directory
|
||||
stats.RemoveItem(info.l1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user