Changeset 8 for trunk/src/kernel/qnetworkprotocol.cpp
- Timestamp:
- Nov 16, 2005, 8:36:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel/qnetworkprotocol.cpp
r7 r8 84 84 oldOps.removeFirst(); 85 85 } 86 delete opStartTimer;87 86 } 88 87 … … 430 429 QNetworkProtocol::~QNetworkProtocol() 431 430 { 431 QNetworkOperation *op = d->opInProgress; 432 if ( op ) { 433 op->setState( StStopped ); 434 op->setProtocolDetail( tr( "Operation stopped by the user" ) ); 435 emit finished( op ); 436 // op->free() will be called by QNetworkOperationPrivate dtor below 437 } 432 438 delete d; 433 439 } … … 1257 1263 void QNetworkOperation::deleteMe() 1258 1264 { 1259 delete this; 1265 // ### A hackish workaround to prevent this op from being deleted during 1266 // the qApp->processEvents() call in QLocalFs::operationListChildren(). 1267 // The proper way is to add something like QNetworkOperation::cancelFree() 1268 // to stop deleteTimer and make it a documented method. 1269 if ( !signalsBlocked() ) 1270 delete this; 1260 1271 } 1261 1272
Note:
See TracChangeset
for help on using the changeset viewer.