Ticket #7795: filezilla_3.5.1_queue_save.patch

File filezilla_3.5.1_queue_save.patch, 1.3 KB (added by Tommy Wu, 13 years ago)

update the patch for folder item also

  • FileZilla3/src/interface/queue_storage.cpp

    old new  
    694694    if (ret)
    695695    {
    696696        sqlite3_int64 serverId = sqlite3_last_insert_rowid(db_);
    697         Bind(insertFileQuery_, file_table_column_names::server, serverId);
     697        // insertFileQuery_ will be reset in SaveFile(), we assign this value after reset it
     698        //Bind(insertFileQuery_, file_table_column_names::server, serverId);
    698699
    699700        const std::vector<CQueueItem*>& children = item.GetChildren();
    700701        for (std::vector<CQueueItem*>::const_iterator it = children.begin() + item.GetRemovedAtFront(); it != children.end(); ++it)
     
    717718
    718719    sqlite3_reset(insertFileQuery_);
    719720
     721    // assign server id here
     722    Bind(insertFileQuery_, file_table_column_names::server, server.GetValue());
    720723    Bind(insertFileQuery_, file_table_column_names::source_file, file.GetSourceFile());
    721724    if (file.GetTargetFile().empty())
    722725        BindNull(insertFileQuery_, file_table_column_names::target_file);
     
    761764{
    762765    sqlite3_reset(insertFileQuery_);
    763766
     767    // assign server id here
     768    Bind(insertFileQuery_, file_table_column_names::server, server.GetValue());
    764769    if (download)
    765770        BindNull(insertFileQuery_, file_table_column_names::source_file);
    766771    else