From acb401d7b24bfc670b534d68edc15e0847e73313 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 28 Sep 2018 17:28:43 +0200 Subject: Turn Session class into namespace --- src/mainwindow/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainwindow') 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 &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(); } }); -- cgit v1.2.1