From 2b246cb8a2beb9685f8bfd66663f239fba2acfd5 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 2 Jul 2018 09:43:09 +0200 Subject: Add nullptr profile check to createSession --- src/profilemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/profilemanager.cpp') diff --git a/src/profilemanager.cpp b/src/profilemanager.cpp index bb967b9..1038598 100644 --- a/src/profilemanager.cpp +++ b/src/profilemanager.cpp @@ -80,7 +80,7 @@ WebProfile *ProfileManager::profile(const QString &id) if(profiles.contains(id)) return profiles.value(id); else - return WebProfile::defaultProfile(); + return nullptr; } const QMap &ProfileManager::profileList() -- cgit v1.2.1