aboutsummaryrefslogtreecommitdiff
path: root/lib/configuration/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/configuration/configuration.cpp')
-rw-r--r--lib/configuration/configuration.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp
index e767c65..0c49a83 100644
--- a/lib/configuration/configuration.cpp
+++ b/lib/configuration/configuration.cpp
@@ -38,7 +38,8 @@ constexpr const char *defaultSocketPath()
#endif
}
-Configuration::Configuration()
+Configuration::Configuration(QObject *parent)
+ : QObject(parent)
{
m_homePath = QStandardPaths::writableLocation(QStandardPaths::HomeLocation).toStdString();
@@ -53,6 +54,8 @@ Configuration::Configuration()
("args", po::value<std::vector<std::string>>(), "arguments")
;
+ arguments_desc.add("args", -1);
+
configuration_desc.add_options()
("browser.stylesheet", po::value<std::string>())
@@ -119,12 +122,8 @@ Configuration::Configuration()
("downloads.path", po::value<std::string>()->default_value("~/Downloads"))
("downloads.shortcut", po::value<std::string>()->default_value("Ctrl+D"))
;
-
- arguments_desc.add("args", -1);
}
-Configuration::~Configuration() = default;
-
bool Configuration::parse(const std::string &path)
{
std::ifstream f(path, std::ifstream::in);