prevent user error when creating project at drive root
This commit is contained in:
@@ -98,6 +98,12 @@ NoggitProjectCreationDialog::NoggitProjectCreationDialog(ProjectInformation& pro
|
|||||||
return;
|
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();
|
project_information.game_client_version = ui->project_expansion->currentText().toStdString();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user