MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / handleOpenFileRequest

Method handleOpenFileRequest

Gui/GuiApplicationManager10.cpp:446–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444}
445
446void
447GuiApplicationManager::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
461void
462GuiApplicationManager::onLoadCompleted()

Callers

nothing calls this directly

Calls 4

toStdStringMethod · 0.80
handleFileOpenEventMethod · 0.80
getMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected