From 754607fa2d185727340d427cae963a3bb2cf2c6b Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 20 May 2017 02:37:04 -0500 Subject: [PATCH] Open new project after creating it --- src/nostalgia/studio/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nostalgia/studio/mainwindow.cpp b/src/nostalgia/studio/mainwindow.cpp index bb3e4b74..e6a5fd5e 100644 --- a/src/nostalgia/studio/mainwindow.cpp +++ b/src/nostalgia/studio/mainwindow.cpp @@ -286,13 +286,14 @@ void MainWindow::showNewWizard() { return pgs; } ); - wizard.setAccept([&wizard, ws, PROJECT_NAME, PROJECT_PATH]() -> int { + wizard.setAccept([this, &wizard, ws, PROJECT_NAME, PROJECT_PATH]() -> int { auto projectName = wizard.field(PROJECT_NAME).toString(); auto projectPath = wizard.field(PROJECT_PATH).toString(); if (QDir(projectPath).exists()) { auto path = projectPath + "/" + projectName; if (!QDir(path).exists()) { Project(path).create(); + openProject(path); return 0; } else { return 1;