aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-15 09:04:59 +0000
committersaturneric <[email protected]>2023-12-15 09:04:59 +0000
commitf5cf83e4b3fdf1e9ae82b00f39e45e189809c419 (patch)
treecc7d9b764b0274cfce5830e22a1ecc23678bd091 /src/app.cpp
parentfix: slove issues on memory and add asan support for debug (diff)
downloadGpgFrontend-f5cf83e4b3fdf1e9ae82b00f39e45e189809c419.tar.gz
GpgFrontend-f5cf83e4b3fdf1e9ae82b00f39e45e189809c419.zip
fix: slove some issues on memory and intilizations
Diffstat (limited to 'src/app.cpp')
-rw-r--r--src/app.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 5ebf6813..4a7d97f3 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -70,7 +70,7 @@ auto StartApplication(const GFCxtWPtr& p_ctx) -> int {
return -1;
}
- auto* app = qobject_cast<QApplication*>(ctx->app.get());
+ auto* app = ctx->GetGuiApp();
if (app == nullptr) {
SPDLOG_ERROR("cannot get qapplication from gpgfrontend context.");
return -1;