aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index 0c4191f..20a91dd 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -255,7 +255,13 @@ void Browser::removeWindow(MainWindow *window)
WebEngineProfile* Browser::profile(const QString name)
{
if(!m_profiles.contains(name)) {
- m_profiles.insert(name, new WebEngineProfile(name, this));
+ if(name.isEmpty()) {
+ // Create off-the-record profile
+ m_profiles.insert(name, new WebEngineProfile(this));
+ } else {
+ // Create regular profile
+ m_profiles.insert(name, new WebEngineProfile(name, this));
+ }
if(!m_urlRequestInterceptor) {
m_urlRequestInterceptor = new UrlRequestInterceptor(this);