Changeset 86205 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 21, 2020 7:32:28 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UITaskCloudRefreshMachineInfo.cpp
r86200 r86205 52 52 /* Show "Refresh cloud machine information" progress: */ 53 53 QPointer<UIProgress> pObject = new UIProgress(m_comCloudMachineRefreshProgress, this); 54 pObject-> run();54 pObject->exec(); 55 55 if (pObject) 56 56 delete pObject; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsGeneral.cpp
r86161 r86205 1166 1166 this, &UIMachineSettingsGeneral::sigOperationProgressError, 1167 1167 Qt::BlockingQueuedConnection); 1168 pObject-> run();1168 pObject->exec(); 1169 1169 if (pObject) 1170 1170 delete pObject; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.cpp
r86198 r86205 561 561 } 562 562 563 void UIProgress:: run()563 void UIProgress::exec() 564 564 { 565 565 /* Make sure progress hasn't aborted/finished already: */ … … 570 570 * but holding a pointer to it for a control needs: */ 571 571 QEventLoop eventLoop; 572 m_pEventLoop = &eventLoop;572 m_pEventLoopExec = &eventLoop; 573 573 574 574 /* Guard ourself for the case … … 585 585 586 586 /* Cleanup the pointer finally: */ 587 m_pEventLoop = 0;587 m_pEventLoopExec = 0; 588 588 } 589 589 … … 602 602 emit sigProgressError(UIErrorString::formatErrorInfo(m_comProgress)); 603 603 604 /* Exit from the e vent-loop if there is any: */605 if (m_pEventLoop )606 m_pEventLoop ->exit();604 /* Exit from the exec event-loop if there is any: */ 605 if (m_pEventLoopExec) 606 m_pEventLoopExec->exit(); 607 607 } 608 608 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIProgressDialog.h
r86198 r86205 202 202 virtual ~UIProgress() /* override */; 203 203 204 /** Executes the progress -handler within itsloop. */205 void run();204 /** Executes the progress within local event-loop. */ 205 void exec(); 206 206 207 207 private slots: … … 229 229 UIProgressEventHandler *m_pEventHandler; 230 230 231 /** Holds the personalevent-loop instance. */232 QPointer<QEventLoop> m_pEventLoop ;231 /** Holds the exec event-loop instance. */ 232 QPointer<QEventLoop> m_pEventLoopExec; 233 233 }; 234 234
Note:
See TracChangeset
for help on using the changeset viewer.