------- 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         




------- Additional Comments From michael.larouche kdemail net  2006-03-05 21:51 
-------
SVN commit 516060 by mlarouche:

Backport to KDE 3.5.2 of:

Workaround fix about zero-sized MSN file transfer bug.
Patch by Bartosz Fabianowski, thank you dude.

CCBUG: 113525



 M  +17 -10    incomingtransfer.cpp  


--- branches/KDE/3.5/kdenetwork/kopete/protocols/msn/incomingtransfer.cpp 
#516059:516060
 @ -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

Reply via email to