diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-08-04 13:12:32 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-08-04 13:12:32 +0200 |
commit | a85dc7d9133c3cf4c94a2ef37db4f53a3d0e4c91 (patch) | |
tree | 81cc123c4afbaf726fbc4a8a6b87d50732432b4b /src/browser.cpp | |
parent | Updated documentation (diff) | |
download | smolbote-a85dc7d9133c3cf4c94a2ef37db4f53a3d0e4c91.tar.xz |
Profile window fixes
Diffstat (limited to 'src/browser.cpp')
-rw-r--r-- | src/browser.cpp | 8 |
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); |