------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=113525 michael.larouche kdemail net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From michael.larouche kdemail net 2006-03-05 21:45 ------- SVN commit 516056 by mlarouche: BUG: 113525 Workaround fix about zero-sized MSN file transfer bug. Patch by Bartosz Fabianowski, thank you dude. M +17 -10 incomingtransfer.cpp --- branches/kopete/0.12/kopete/protocols/msn/incomingtransfer.cpp #516055:516056 @ -256,19 +256,26 @ { // NOTE The sending client can ask for a direct connections // if one was established before. - QFile *destionation = new QFile(m_transfer->destinationURL().path()); - if(!destionation->open(IO_WriteOnly)) + if(!m_file) { - if(m_transfer){ - m_transfer->slotError(KIO::ERR_CANNOT_OPEN_FOR_WRITING, i18n("Cannot open file for writing")); - m_transfer = 0l; + QFile *destionation = new QFile(m_transfer->destinationURL().path()); + if(!destionation->open(IO_WriteOnly)) + { + if(m_transfer){ + m_transfer->slotError(KIO::ERR_CANNOT_OPEN_FOR_WRITING, i18n("Cannot open file for writing")); + m_transfer = 0l; + } + + error(); + return; } - - error(); - return; + + m_file = destionation; } - - m_file = destionation; + else + { + // TODO + } } m_state = DataTransfer; _______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel