fixed: compiling in the clang (new version of c++ std lib)
(added some header files) added: three messsages in ticket plugin: // send by showtickets winix function when tickets are loaded (and sorted) // in p1 you have a pointer to the ticket tab: std::vector<Ticket::Ticket> (include "ticket.h") // in p2 you have a pointer to the sort tab: std::vector<Item*> // those tables don't have to be equal in size (in the case when there is no some tickets in the database) #define WINIX_PL_TICKET_TICKETS_LOADED 4106 // a new ticket has been added // in p1 you have a pointer to the Ticket::Ticket structure (include "ticket.h") // in p2 you have a pointer to the Item structure #define WINIX_PL_TICKET_ADDED_NEW 4107 // a ticket has been changed // in p1 you have a pointer to the Ticket::Ticket structure (include "ticket.h") // in p2 you have a pointer to the Item structure #define WINIX_PL_TICKET_CHANGED 4108 added: two ezc functions for tickets: ticket_does_param_id_have_value() tickets_tab_does_param_id_have_value() (they take two integer arguments -- testing whether a specified param_id has the given value) changed: some more minor additions in tickets templates git-svn-id: svn://ttmath.org/publicrep/winix/trunk@932 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -561,19 +561,16 @@ PostFileTab::iterator i2;
|
||||
|
||||
void TicketInfo::RemoveTicket(long file_id)
|
||||
{
|
||||
/*
|
||||
* IMPROVEME
|
||||
* we should also remove some files (images) for a ticket
|
||||
* may when 'rm' function is displayed we should show some checkboxes
|
||||
* 'remove static files etc.' and if they are checked then the files are removed?
|
||||
*
|
||||
*/
|
||||
|
||||
if( tdb->GetTicket(file_id, rm_ticket) == WINIX_ERR_OK )
|
||||
{
|
||||
// !! WTF?
|
||||
/*
|
||||
for(size_t i=0 ; i<rm_ticket.par_tab.size(); ++i)
|
||||
{
|
||||
long id = rm_ticket.par_tab[i].int_value;
|
||||
functions->fun_rm.RemoveItemById(id);
|
||||
}
|
||||
*/
|
||||
|
||||
//
|
||||
|
||||
tdb->RemoveTicket(file_id);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user