From 5f0a8b4d3a5ac5dd01d8fb2f9d58e6b6ac35d576 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 30 Apr 2018 15:21:22 +0200 Subject: Window::session --- src/mainwindow/mainwindow.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/mainwindow/mainwindow.cpp') diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index 6e4189e..be5e6e4 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -26,6 +26,8 @@ #include #include #include +#include +#include MainWindow::MainWindow(std::shared_ptr &config, QWidget *parent) : QMainWindow(parent) @@ -178,7 +180,14 @@ Window *MainWindow::createSubWindow(const QUrl &url) w->showMaximized(); w->setFocus(); - w->addTab(url); + QJsonObject session; + session.insert("profile", ""); + QJsonArray urls; + urls.append(url.toString()); + session.insert("tabs", urls); + + //w->addTab(url); + //w->restoreSession(session); return w; } -- cgit v1.2.1