aboutsummaryrefslogtreecommitdiff
path: root/src/session
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-12-13 12:49:28 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-12-13 13:41:50 +0100
commit4eedf60d76a047f63b0991eee0b623e9be854c76 (patch)
treec8b335c8909a309c2bc2765e823bec5da74aa5aa /src/session
parentFix crash creating ConfigurationEditorPlugin widget (diff)
downloadsmolbote-4eedf60d76a047f63b0991eee0b623e9be854c76.tar.xz
MainWindow: rework menu bar
Split off menu bar into its own class out of MainWindow Menu bar now has a 'Find in menus' function
Diffstat (limited to 'src/session')
-rw-r--r--src/session/session.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session/session.cpp b/src/session/session.cpp
index 10aca4e..f7d372b 100644
--- a/src/session/session.cpp
+++ b/src/session/session.cpp
@@ -150,7 +150,7 @@ void Session::restoreSession(const QJsonObject &sessionData)
subwindow = window->currentSubWindow();
} else {
window = browser->createWindow();
- subwindow = window->createSubWindow(browser->getConfiguration(), profileManager->profile(subwindowData.toObject()["profile"].toString()));
+ subwindow = window->createSubWindow(profileManager->profile(subwindowData.toObject()["profile"].toString()));
}
Q_CHECK_PTR(window);
@@ -166,7 +166,7 @@ void Session::restoreSession(const QJsonObject &sessionData)
auto *window = browser->createWindow();
for(const auto subwindowData : windowData.toObject()["subwindows"].toArray()) {
- auto *subwindow = window->createSubWindow(browser->getConfiguration(), profileManager->profile(subwindowData.toObject()["profile"].toString()));
+ auto *subwindow = window->createSubWindow(profileManager->profile(subwindowData.toObject()["profile"].toString()));
for(const auto tabData : subwindowData.toObject()["tabs"].toArray()) {
auto *view = subwindow->view(subwindow->addTab());