Changeset 76835 in vbox
- Timestamp:
- Jan 16, 2019 11:54:21 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIStarter.cpp
r76825 r76835 80 80 connect(&vboxGlobal(), &VBoxGlobal::sigAskToRestartUI, 81 81 this, &UIStarter::sltRestartUI); 82 connect(&vboxGlobal(), &VBoxGlobal::sigAskToOpenURLs,83 this, &UIStarter::sltOpenURLs);84 82 connect(&vboxGlobal(), &VBoxGlobal::sigAskToCommitData, 85 83 this, &UIStarter::sltHandleCommitDataRequest); … … 91 89 disconnect(&vboxGlobal(), &VBoxGlobal::sigAskToRestartUI, 92 90 this, &UIStarter::sltRestartUI); 93 disconnect(&vboxGlobal(), &VBoxGlobal::sigAskToOpenURLs,94 this, &UIStarter::sltOpenURLs);95 91 disconnect(&vboxGlobal(), &VBoxGlobal::sigAskToCommitData, 96 92 this, &UIStarter::sltHandleCommitDataRequest); … … 173 169 } 174 170 175 void UIStarter::sltOpenURLs()176 {177 #ifndef VBOX_RUNTIME_UI178 /* Create/show manager-window: */179 UIVirtualBoxManager::create();180 181 /* Ask the Manager UI to open URLs asynchronously: */182 QMetaObject::invokeMethod(gpManager, "sltHandleOpenUrlCall", Qt::QueuedConnection);183 #endif184 }185 186 171 void UIStarter::sltHandleCommitDataRequest() 187 172 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIStarter.h
r76581 r76835 64 64 void cleanup(); 65 65 66 /** Opens URLs in Selector UI. */67 void sltOpenURLs();68 69 66 /** Handles commit data request. */ 70 67 void sltHandleCommitDataRequest(); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r76834 r76835 496 496 if (!listArgUrls.isEmpty()) 497 497 { 498 /* We store them : */498 /* We store them, they will be handled later: */ 499 499 m_listArgUrls = listArgUrls; 500 /* And ask UIStarter to open them: */501 emit sigAskToOpenURLs();502 500 } 503 501 504 502 return fResult; 503 } 504 505 bool VBoxGlobal::argumentUrlsPresent() const 506 { 507 return !m_listArgUrls.isEmpty(); 505 508 } 506 509 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r76826 r76835 76 76 /** @} */ 77 77 78 /** @name Process arguments stuff.79 * @{ */80 /** Asks #UIStarter listener to open URLs. */81 void sigAskToOpenURLs();82 /** @} */83 84 78 /** @name COM stuff. 85 79 * @{ */ … … 201 195 bool processArgs(); 202 196 197 /** Returns whether there are unhandled URL arguments present. */ 198 bool argumentUrlsPresent() const; 203 199 /** Takes and returns the URL argument list while clearing the source. */ 204 200 QList<QUrl> takeArgumentUrls(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r76815 r76835 1240 1240 } 1241 1241 #endif /* VBOX_WS_MAC */ 1242 1243 /* If there are unhandled URLs we should handle them after manager is shown: */ 1244 if (vboxGlobal().argumentUrlsPresent()) 1245 QMetaObject::invokeMethod(this, "sltHandleOpenUrlCall", Qt::QueuedConnection); 1242 1246 } 1243 1247
Note:
See TracChangeset
for help on using the changeset viewer.