aboutsummaryrefslogtreecommitdiff
path: root/src/browser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.cpp')
-rw-r--r--src/browser.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/browser.cpp b/src/browser.cpp
index 355c24b..0ea36d8 100644
--- a/src/browser.cpp
+++ b/src/browser.cpp
@@ -253,12 +253,7 @@ void Browser::removeWindow(MainWindow *window)
WebEngineProfile* Browser::profile(const QString name)
{
if(!m_profiles.contains(name)) {
- // name can be empty --> off-the-record profile
- if(name.isEmpty()) {
- m_profiles.insert(name, new WebEngineProfile(this));
- } else {
- m_profiles.insert(name, new WebEngineProfile(name, settings()->value("browser.profile.path").toString(), this));
- }
+ m_profiles.insert(name, new WebEngineProfile(name, this));
if(!m_urlRequestInterceptor) {
m_urlRequestInterceptor = new UrlRequestInterceptor(this);