Changeset 74305 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Sep 17, 2018 11:44:43 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r73953 r74305 530 530 } 531 531 532 QList<QUrl> VBoxGlobal::takeArgumentUrls() 533 { 534 const QList<QUrl> result = m_listArgUrls; 535 m_listArgUrls.clear(); 536 return result; 537 } 538 532 539 #ifdef VBOX_WITH_DEBUGGER_GUI 533 540 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r73953 r74305 202 202 bool processArgs(); 203 203 204 /** Returns the URL arguments list. */205 QList<QUrl> &argUrlList() { return m_listArgUrls; }204 /** Takes and returns the URL argument list while clearing the source. */ 205 QList<QUrl> takeArgumentUrls(); 206 206 207 207 /** Returns the --startvm option value (managed VM id). */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r74272 r74305 310 310 void UIVirtualBoxManager::sltHandleOpenUrlCall(QList<QUrl> list /* = QList<QUrl>() */) 311 311 { 312 /* If passed list is empty : */312 /* If passed list is empty, we take the one from VBoxGlobal: */ 313 313 if (list.isEmpty()) 314 { 315 /* We take the one which stored in VBoxGlobal: */ 316 list = vboxGlobal().argUrlList(); 317 vboxGlobal().argUrlList().clear(); 318 /// @todo Rework this getter to do .clear() as well. 319 } 314 list = vboxGlobal().takeArgumentUrls(); 320 315 321 316 /* Check if we are can handle the dropped urls: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r74216 r74305 364 364 qApp->processEvents(); 365 365 366 /* If passed list is empty, we take the one from VBoxGlobal: */ 366 367 if (list.isEmpty()) 367 { 368 list = vboxGlobal().argUrlList(); 369 vboxGlobal().argUrlList().clear(); 370 } 368 list = vboxGlobal().takeArgumentUrls(); 369 371 370 /* Check if we are can handle the dropped urls. */ 372 371 for (int i = 0; i < list.size(); ++i)
Note:
See TracChangeset
for help on using the changeset viewer.