diff options
Diffstat (limited to 'src/mainwindow/mainwindow.cpp')
-rw-r--r-- | src/mainwindow/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp index 0932aee..07ac8f0 100644 --- a/src/mainwindow/mainwindow.cpp +++ b/src/mainwindow/mainwindow.cpp @@ -193,8 +193,8 @@ void MainWindow::createMenuBar() auto *debugMenu = menuBar()->addMenu(tr("Debug")); debugMenu->addAction(tr("Print window session"), [this]() { - auto json = Session::toJson(this); - qDebug("session data >>>\n%s\n<<<", qUtf8Printable(json.toJson())); + auto json = Session::toJsonObject(this); + qDebug("session data >>>\n%s\n<<<", qUtf8Printable(QJsonDocument(json).toJson())); }); #endif } |