| 444 | } |
| 445 | |
| 446 | void |
| 447 | GuiApplicationManager::handleOpenFileRequest() |
| 448 | { |
| 449 | AppInstancePtr mainApp = getAppInstance(0); |
| 450 | GuiAppInstance* guiApp = dynamic_cast<GuiAppInstance*>( mainApp.get() ); |
| 451 | |
| 452 | assert(guiApp); |
| 453 | if (guiApp) { |
| 454 | ///Called when double-clicking a file from desktop |
| 455 | std::string filename = _imp->_openFileRequest.toStdString(); |
| 456 | _imp->_openFileRequest.clear(); |
| 457 | guiApp->handleFileOpenEvent(filename); |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | void |
| 462 | GuiApplicationManager::onLoadCompleted() |
nothing calls this directly
no test coverage detected