aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-09-28 17:28:43 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-09-28 17:28:43 +0200
commitacb401d7b24bfc670b534d68edc15e0847e73313 (patch)
tree4cd0dc7c95523ebf90469eb12c8613a733523b95 /src/mainwindow
parentbreakpad: try to write session on crash (diff)
downloadsmolbote-acb401d7b24bfc670b534d68edc15e0847e73313.tar.xz
Turn Session class into namespace
Diffstat (limited to 'src/mainwindow')
-rw-r--r--src/mainwindow/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index cc67b3d..e3c64f5 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -130,7 +130,7 @@ MainWindow::MainWindow(const std::unique_ptr<Configuration> &config, QWidget *pa
const QString filename = QFileDialog::getSaveFileName(this, tr("Save Session"), QDir::homePath(), tr("JSON (*.json)"));
QFile output(filename);
if(output.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text)) {
- output.write(QJsonDocument(Session::toJsonObject(this)).toJson());
+ output.write(QJsonDocument(Session::window(this)).toJson());
output.close();
}
});