summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMaximillian <maximillian.pol@gmail.com>2015-01-06 11:46:47 -0700
committerMaximillian <maximillian.pol@gmail.com>2015-01-06 11:46:47 -0700
commitd8c14af546351a716b3e089b2573f4b81067b4c9 (patch)
tree124385d9bada7f275bd2cfb6c25bd6ebf259f44f /tools
parent6b106b319b0b4c9436a992bf26c88d93180905e9 (diff)
Fix invaild path error text in project manager when no path is entered
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/project_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp
index cf94758ad6..0af4a23547 100644
--- a/tools/editor/project_manager.cpp
+++ b/tools/editor/project_manager.cpp
@@ -65,7 +65,7 @@ class NewProjectDialog : public ConfirmationDialog {
error->set_text("");
get_ok()->set_disabled(true);
DirAccess *d = DirAccess::create(DirAccess::ACCESS_FILESYSTEM);
- if (d->change_dir(project_path->get_text())!=OK) {
+ if (project_path->get_text() != "" && d->change_dir(project_path->get_text())!=OK) {
error->set_text("Invalid Path for Project, Path Must Exist!");
memdelete(d);
return false;
@@ -82,7 +82,7 @@ class NewProjectDialog : public ConfirmationDialog {
} else {
- if (!d->file_exists("engine.cfg")) {
+ if (project_path->get_text() != "" && !d->file_exists("engine.cfg")) {
error->set_text("Invalid Project Path (engine.cfg must exist).");
memdelete(d);