diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-05-28 22:05:45 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-05-29 14:33:05 +0300 |
commit | 149043a24273e5f02ed921e33c256567156fa95a (patch) | |
tree | 9cf19007a2dd055e75fb8d9d2335737ae90fb333 /src/webengine/webprofile.cpp | |
parent | Turn on more warnings by default (diff) | |
download | smolbote-149043a24273e5f02ed921e33c256567156fa95a.tar.xz |
Fix segfault in release build
When creating a WebView out of a Session struct, fall back to the
default profile if one is not set, or a profile with that ID is not
found.
- Update PKGBUILD
Diffstat (limited to 'src/webengine/webprofile.cpp')
-rw-r--r-- | src/webengine/webprofile.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/webengine/webprofile.cpp b/src/webengine/webprofile.cpp index 719ab34..f1e71fb 100644 --- a/src/webengine/webprofile.cpp +++ b/src/webengine/webprofile.cpp @@ -18,12 +18,10 @@ static WebProfile *s_profile = nullptr; void WebProfile::setDefaultProfile(WebProfile *profile) { - Q_CHECK_PTR(profile); s_profile = profile; } WebProfile *WebProfile::defaultProfile() { - Q_CHECK_PTR(s_profile); return s_profile; } |