VirtualBox

Ignore:
Timestamp:
Feb 1, 2012 2:07:19 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76013
Message:

FE/Qt: Network Access Manager: Get rid of Qt4.6 stuff to satisfy minimum Qt version requirements.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/net
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.cpp

    r39932 r39934  
    420420    , m_strDescription(strDescription)
    421421    , m_pCustomer(pCustomer)
     422    , m_fRunning(false)
    422423{
    423424    /* Initialize: */
     
    438439    , m_strDescription(strDescription)
    439440    , m_pCustomer(pCustomer)
     441    , m_fRunning(false)
    440442{
    441443    /* Initialize: */
     
    465467void UINetworkRequest::sltHandleNetworkReplyFinish()
    466468{
     469    /* Set as non-running: */
     470    m_fRunning = false;
     471
    467472    /* Get sender network reply: */
    468473    QNetworkReply *pNetworkReply = static_cast<QNetworkReply*>(sender());
     
    591596    connect(m_pReply, SIGNAL(finished()), this, SLOT(sltHandleNetworkReplyFinish()));
    592597
     598    /* Set as running: */
     599    m_fRunning = true;
     600
    593601    /* Notify UINetworkRequestWidget: */
    594602    emit sigStarted();
     
    611619    if (m_pReply)
    612620    {
    613         if (m_pReply->isRunning())
     621        if (m_fRunning)
    614622            m_pReply->abort();
    615         else if (m_pReply->isFinished())
     623        else
    616624            emit sigCanceled(m_uuid);
    617625    }
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.h

    r39932 r39934  
    112112    UINetworkCustomer *m_pCustomer;
    113113    QPointer<QNetworkReply> m_pReply;
     114    bool m_fRunning;
    114115};
    115116
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette