diff options
author | vamsi <vamsikrishna.v@gmail.com> | 2016-07-13 10:22:56 +0530 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2016-07-13 18:25:05 +0200 |
commit | b3cf4c73fcd51a893ed12dfea110151968e1a2e0 (patch) | |
tree | fc96f923d7152f1b5fd6d93d088cef28c94f770b /tools/editor/project_manager.cpp | |
parent | 1403fa18a9cf1077d9b7ec974ee9f77249ae49b6 (diff) |
Fixed a crash in scenario where SSL is not available.
Diffstat (limited to 'tools/editor/project_manager.cpp')
-rw-r--r-- | tools/editor/project_manager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp index 25d42eb601..d00a22837c 100644 --- a/tools/editor/project_manager.cpp +++ b/tools/editor/project_manager.cpp @@ -1126,10 +1126,10 @@ ProjectManager::ProjectManager() { if (StreamPeerSSL::is_available()) { - asset_library = memnew( EditorAssetLibrary(true) ); asset_library->set_name("Templates"); tabs->add_child(asset_library); + asset_library->connect("install_asset",this,"_install_project"); } else { WARN_PRINT("Asset Library not available, as it requires SSL to work."); } @@ -1163,9 +1163,6 @@ ProjectManager::ProjectManager() { gui_base->add_child(multi_run_ask); - - asset_library->connect("install_asset",this,"_install_project"); - OS::get_singleton()->set_low_processor_usage_mode(true); npdialog = memnew( NewProjectDialog ); |