prevent user error when creating project at drive root

This commit is contained in:
T1ti
2025-01-02 21:59:11 +01:00
parent ba19b06156
commit ba21431e0b

View File

@@ -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();