diff --git a/Dockerfile b/Dockerfile index ce89d63e..282abef7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ RUN dnf install -y qt5-devel llvm libasan ############################################################################### # Install Ox -RUN git clone -b e976fd3fe62c98be29c4389ba6700a4a1fb8e0ae https://github.com/wombatant/ox.git /usr/local/src/ox && \ +RUN git clone -b release-0.2 https://github.com/wombatant/ox.git /usr/local/src/ox && \ cd /usr/local/src/ox && \ # setup build dirs mkdir -p \ diff --git a/src/studio/mainwindow.cpp b/src/studio/mainwindow.cpp index cfe3e837..224abb95 100644 --- a/src/studio/mainwindow.cpp +++ b/src/studio/mainwindow.cpp @@ -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(); }