aboutsummaryrefslogtreecommitdiff
path: root/src/session
diff options
context:
space:
mode:
Diffstat (limited to 'src/session')
-rw-r--r--src/session/sessiondialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/session/sessiondialog.cpp b/src/session/sessiondialog.cpp
index b734088..301b4b6 100644
--- a/src/session/sessiondialog.cpp
+++ b/src/session/sessiondialog.cpp
@@ -16,6 +16,7 @@
#include <QFileDialog>
#include <QToolButton>
#include <QStyle>
+#include "configuration.h"
SessionDialog::SessionDialog(QWidget *parent)
: QDialog(parent)
@@ -27,7 +28,8 @@ SessionDialog::SessionDialog(QWidget *parent)
auto *browser = qobject_cast<Browser *>(qApp);
Q_CHECK_PTR(browser);
- for(const QString &path : Util::files(browser->configuration("browser.session.path"), { "*.json" })) {
+ Configuration conf;
+ for(const QString &path : Util::files(conf.value<QString>("session.path").value(), { "*.json" })) {
addItem(path);
}