[Konversation-devel] [Bug 102407] aborted dcc send because of NAT crashes konversation when pressing Abort
Peter Simonsson
peter.simonsson at gmail.com
Thu Jul 1 16:01:20 CEST 2010
https://bugs.kde.org/show_bug.cgi?id=102407
--- Comment #3 from Peter Simonsson <peter simonsson gmail com> 2010-07-01 16:01:18 ---
commit a59933e6ee96d055d2ce49a18258c82d5b24d71b
Author: Peter Simonsson <peter.simonsson at gmail.com>
Date: Sun Mar 27 22:58:38 2005 +0000
Don't crash on abort before actually starting to receive
BUG:102407
CCMAIL:shin at shoegazed.org
svn path=/trunk/kdeextragear-2/konversation/; revision=401140
diff --git a/konversation/dcctransferrecv.cpp
b/konversation/dcctransferrecv.cpp
index 1fd799b..9af6bed 100644
--- a/konversation/dcctransferrecv.cpp
+++ b/konversation/dcctransferrecv.cpp
@@ -168,8 +168,11 @@ void DccTransferRecv::failed( const QString& errorMessage
)
void DccTransferRecv::abort() // public slot
{
kdDebug() << "DccTransferRecv::abort()" << endl;
-
- m_writeCacheHandler->write( true ); // flush
+
+ if(m_writeCacheHandler) {
+ m_writeCacheHandler->write( true ); // flush
+ }
+
setStatus( Aborted );
updateView();
cleanUp();
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Konversation-devel
mailing list