Adjust size of New wizard

This commit is contained in:
2017-04-21 06:04:42 -05:00
parent 51124966c3
commit 0231d48c91
2 changed files with 6 additions and 3 deletions

View File

@ -102,10 +102,13 @@ void MainWindow::showNewWizard() {
wizard.setAccept([&wizard, PROJECT_NAME, PROJECT_PATH]() {
auto projectName = wizard.field(PROJECT_NAME).toString();
auto projectPath = wizard.field(PROJECT_PATH).toString();
auto path = projectPath + "/" + projectName;
Project(path).create();
if (QDir(projectPath).exists()) {
auto path = projectPath + "/" + projectName;
Project(path).create();
}
}
);
wizard.resize(width() / 3, height() / 3);
wizard.show();
wizard.exec();
}