Changeset 39934 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 1, 2012 2:07:19 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76013
- 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 420 420 , m_strDescription(strDescription) 421 421 , m_pCustomer(pCustomer) 422 , m_fRunning(false) 422 423 { 423 424 /* Initialize: */ … … 438 439 , m_strDescription(strDescription) 439 440 , m_pCustomer(pCustomer) 441 , m_fRunning(false) 440 442 { 441 443 /* Initialize: */ … … 465 467 void UINetworkRequest::sltHandleNetworkReplyFinish() 466 468 { 469 /* Set as non-running: */ 470 m_fRunning = false; 471 467 472 /* Get sender network reply: */ 468 473 QNetworkReply *pNetworkReply = static_cast<QNetworkReply*>(sender()); … … 591 596 connect(m_pReply, SIGNAL(finished()), this, SLOT(sltHandleNetworkReplyFinish())); 592 597 598 /* Set as running: */ 599 m_fRunning = true; 600 593 601 /* Notify UINetworkRequestWidget: */ 594 602 emit sigStarted(); … … 611 619 if (m_pReply) 612 620 { 613 if (m_ pReply->isRunning())621 if (m_fRunning) 614 622 m_pReply->abort(); 615 else if (m_pReply->isFinished())623 else 616 624 emit sigCanceled(m_uuid); 617 625 } -
trunk/src/VBox/Frontends/VirtualBox/src/net/UINetworkManager.h
r39932 r39934 112 112 UINetworkCustomer *m_pCustomer; 113 113 QPointer<QNetworkReply> m_pReply; 114 bool m_fRunning; 114 115 }; 115 116
Note:
See TracChangeset
for help on using the changeset viewer.