From ba21431e0b02d5f8009952c84e6b65770be1d4fc Mon Sep 17 00:00:00 2001 From: T1ti <40864460+T1ti@users.noreply.github.com> Date: Thu, 2 Jan 2025 21:59:11 +0100 Subject: [PATCH] prevent user error when creating project at drive root --- .../windows/projectCreation/NoggitProjectCreationDialog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/noggit/ui/windows/projectCreation/NoggitProjectCreationDialog.cpp b/src/noggit/ui/windows/projectCreation/NoggitProjectCreationDialog.cpp index 3d0bcfe0..3addaa36 100755 --- a/src/noggit/ui/windows/projectCreation/NoggitProjectCreationDialog.cpp +++ b/src/noggit/ui/windows/projectCreation/NoggitProjectCreationDialog.cpp @@ -98,6 +98,12 @@ NoggitProjectCreationDialog::NoggitProjectCreationDialog(ProjectInformation& pro return; } + if (project_path == project_path.root_path()) + { + QMessageBox::critical(this, "Error", "Project path can't be the root of a drive.\nPoint to a folder, preferrably empty."); + return; + } + project_information.game_client_version = ui->project_expansion->currentText().toStdString();