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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index 7f9cdcc..ccc5f1e 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -129,7 +129,8 @@ MainWindow::MainWindow(const std::unique_ptr<Configuration> &config, QWidget *pa
QFile json(filename);
if(json.open(QIODevice::ReadOnly | QIODevice::Text)) {
auto *browser = qobject_cast<Browser *>(qApp);
- browser->sendMessage(json.readAll());
+ auto doc = QJsonDocument::fromJson(json.readAll());
+ browser->createSession(doc.object());
json.close();
}
});