Ignore:
Timestamp:
Nov 16, 2005, 8:36:46 PM (20 years ago)
Author:
dmik
Message:

Transferred Qt for OS/2 version 3.3.1-rc5 sources from the CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel/qnetworkprotocol.cpp

    r7 r8  
    8484            oldOps.removeFirst();
    8585        }
    86         delete opStartTimer;
    8786    }
    8887
     
    430429QNetworkProtocol::~QNetworkProtocol()
    431430{
     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    }
    432438    delete d;
    433439}
     
    12571263void QNetworkOperation::deleteMe()
    12581264{
    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;
    12601271}
    12611272
Note: See TracChangeset for help on using the changeset viewer.