summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/kdenetwork/files/kopete-3.5.x-msn-filetransfer.patch')
-rw-r--r--kde-base/kdenetwork/files/kopete-3.5.x-msn-filetransfer.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/kde-base/kdenetwork/files/kopete-3.5.x-msn-filetransfer.patch b/kde-base/kdenetwork/files/kopete-3.5.x-msn-filetransfer.patch
new file mode 100644
index 000000000000..9aee13aa697d
--- /dev/null
+++ b/kde-base/kdenetwork/files/kopete-3.5.x-msn-filetransfer.patch
@@ -0,0 +1,41 @@
+Index: kopete/protocols/msn/incomingtransfer.cpp
+===================================================================
+--- kopete/protocols/msn/incomingtransfer.cpp (revision 516055)
++++ kopete/protocols/msn/incomingtransfer.cpp (revision 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;