summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2016-07-10 17:19:19 -0300
committerGeorge Marques <george@gmarqu.es>2016-07-10 17:19:29 -0300
commit1a1b62748a01928401a344b8c538b59f75706ece (patch)
tree199bf163665cc5087159342b28e4958a61b6a21f /main
parent637796900080cfcf407e1045f10e6e9040c8d33e (diff)
Fix crash on asset lib install
This is not the perfect solution, but fixes the crash and avoid a dependency on EditorNode.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index adaebab1d4..aa8540632f 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1504,6 +1504,8 @@ bool Main::start() {
if (project_manager_request || (script=="" && test=="" && game_path=="" && !editor)) {
ProjectManager *pmanager = memnew( ProjectManager );
+ ProgressDialog *progress_dialog = memnew( ProgressDialog );
+ pmanager->add_child(progress_dialog);
sml->get_root()->add_child(pmanager);
OS::get_singleton()->set_context(OS::CONTEXT_PROJECTMAN);
}