OpenToonz - An open-source full-featured 2D animation creation software
C
Merged in OT master with conflicts resolved
manongjohnec919723020a
diff --cc toonz/sources/toonz/startuppopup.cppindex fcc640806,fee6e0567..e49fb6833--- a/toonz/sources/toonz/startuppopup.cpp+++ b/toonz/sources/toonz/startuppopup.cpp@@@ -867,17 -861,29 +869,25 @@@ void StartupPopup::onRecentSceneClickedDVGui::warning(msg);refreshRecentScenes();} else {- IoCmd::loadScene(TFilePath(path.toStdWString()), false);+ if (RecentFiles::instance()->getFileProject(index) != "-") {+ QString projectName = RecentFiles::instance()->getFileProject(index);+ int projectIndex = m_projectsCB->findText(projectName);+ if (projectIndex >= 0) {+ TFilePath projectFp = m_projectPaths[projectIndex];+ TProjectManager::instance()->setCurrentProjectPath(projectFp);- } else {- QString msg = tr("The selected scene project '%1' is not in the "- "Current Project list and may not open automatically.")- .arg(projectName);- DVGui::warning(msg);+ }+ }+ IoCmd::loadScene(TFilePath(path.toStdWString()), false, true);- if (RecentFiles::instance()->getFileProject(index) == "-") {+ QString origProjectName = RecentFiles::instance()->getFileProject(index);+ QString projectName = QString::fromStdString(TApp::instance()+ ->getCurrentScene()+ ->getScene()+ ->getProject()+ ->getName()+ .getName());+ if (origProjectName == "-" || origProjectName != projectName) {QString fileName =RecentFiles::instance()->getFilePath(index, RecentFiles::Scene);- QString projectName = QString::fromStdString(TApp::instance()- ->getCurrentScene()- ->getScene()- ->getProject()- ->getName()- .getName());RecentFiles::instance()->removeFilePath(index, RecentFiles::Scene);RecentFiles::instance()->addFilePath(fileName, RecentFiles::Scene,projectName);