aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/app.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 69262737..d079adb3 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -64,12 +64,7 @@ auto StartApplication(const GFCxtWPtr& p_ctx) -> int {
return -1;
}
- if (!ctx->load_ui_env) {
- GF_MAIN_LOG_ERROR("the loading of gui application is forbidden.");
- return -1;
- }
-
- auto* app = ctx->GetGuiApp();
+ auto* app = ctx->GetApp();
if (app == nullptr) {
GF_MAIN_LOG_ERROR("cannot get qapplication from gpgfrontend context.");
return -1;