aboutsummaryrefslogtreecommitdiff
path: root/src/session/sessiondialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/session/sessiondialog.cpp')
-rw-r--r--src/session/sessiondialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/session/sessiondialog.cpp b/src/session/sessiondialog.cpp
index e31a42f..5fd65c3 100644
--- a/src/session/sessiondialog.cpp
+++ b/src/session/sessiondialog.cpp
@@ -81,7 +81,7 @@ void SessionDialog::openSession(const QString &filename)
if(json.open(QIODevice::ReadOnly | QIODevice::Text)) {
auto *browser = qobject_cast<Browser *>(qApp);
auto doc = QJsonDocument::fromJson(json.readAll());
- browser->createSession(doc.object());
+ Session::restoreSession(doc.object());
json.close();
}
}