Ticket #7795: filezilla_3.5.1_queue_save.patch
File filezilla_3.5.1_queue_save.patch, 1.3 KB (added by , 13 years ago) |
---|
-
FileZilla3/src/interface/queue_storage.cpp
old new 694 694 if (ret) 695 695 { 696 696 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); 698 699 699 700 const std::vector<CQueueItem*>& children = item.GetChildren(); 700 701 for (std::vector<CQueueItem*>::const_iterator it = children.begin() + item.GetRemovedAtFront(); it != children.end(); ++it) … … 717 718 718 719 sqlite3_reset(insertFileQuery_); 719 720 721 // assign server id here 722 Bind(insertFileQuery_, file_table_column_names::server, server.GetValue()); 720 723 Bind(insertFileQuery_, file_table_column_names::source_file, file.GetSourceFile()); 721 724 if (file.GetTargetFile().empty()) 722 725 BindNull(insertFileQuery_, file_table_column_names::target_file); … … 761 764 { 762 765 sqlite3_reset(insertFileQuery_); 763 766 767 // assign server id here 768 Bind(insertFileQuery_, file_table_column_names::server, server.GetValue()); 764 769 if (download) 765 770 BindNull(insertFileQuery_, file_table_column_names::source_file); 766 771 else