diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-02 09:43:09 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-02 09:43:09 +0200 |
commit | 2b246cb8a2beb9685f8bfd66663f239fba2acfd5 (patch) | |
tree | 241eda2e333344e15978958043a2137997ebe6b9 /src/browser.cpp | |
parent | Replace SingleApplication with itay-grudev/SingleApplication (diff) | |
download | smolbote-2b246cb8a2beb9685f8bfd66663f239fba2acfd5.tar.xz |
Add nullptr profile check to createSession
Diffstat (limited to 'src/browser.cpp')
-rw-r--r-- | src/browser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/browser.cpp b/src/browser.cpp index f6b3805..38c7d85 100644 --- a/src/browser.cpp +++ b/src/browser.cpp @@ -155,6 +155,8 @@ void Browser::createSession(const QJsonObject &object) const QJsonObject subwindow = s.toObject(); const QString profileId = subwindow.value("profile").toString(); WebProfile *profile = ProfileManager::profile(profileId); + if(profile == nullptr) + profile = WebProfile::defaultProfile(); Q_CHECK_PTR(profile); SubWindow *window = nullptr; |