aboutsummaryrefslogtreecommitdiff
path: root/src/session
diff options
context:
space:
mode:
Diffstat (limited to 'src/session')
-rw-r--r--src/session/savesessiondialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/session/savesessiondialog.cpp b/src/session/savesessiondialog.cpp
index ff5e696..e22ce3a 100644
--- a/src/session/savesessiondialog.cpp
+++ b/src/session/savesessiondialog.cpp
@@ -12,7 +12,7 @@
#include "session_json.hpp"
#include "subwindow/subwindow.h"
#include "ui_savesessiondialog.h"
-#include "webengine/webprofilemanager.h"
+#include "webengine/webprofile.h"
#include "webengine/webview.h"
#include <QFileDialog>
#include <QPointer>
@@ -37,7 +37,7 @@ SaveSessionDialog::SaveSessionDialog(QWidget *parent)
for(const SubWindow *subwindow : window->subWindows()) {
auto *subwindowItem = new QTreeWidgetItem(windowItem);
subwindowItem->setText(0, tr("Subwindow"));
- subwindowItem->setText(1, WebProfileManager::instance()->id(subwindow->profile()));
+ subwindowItem->setText(1, subwindow->profile()->getId());
ui->treeWidget->expandItem(subwindowItem);
@@ -45,7 +45,7 @@ SaveSessionDialog::SaveSessionDialog(QWidget *parent)
auto *tabItem = new QTreeWidgetItem(subwindowItem);
auto *view = subwindow->view(i);
tabItem->setText(0, view->title());
- tabItem->setText(1, WebProfileManager::instance()->id(view->profile()));
+ tabItem->setText(1, view->profile()->getId());
}
}
}