aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r--src/mainwindow/mainwindow.cpp11
1 files changed, 10 insertions, 1 deletions
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 <QUrl>
#include <about/aboutdialog.h>
#include <configuration/configuration.h>
+#include <QJsonObject>
+#include <QJsonArray>
MainWindow::MainWindow(std::shared_ptr<Configuration> &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;
}