diff options
Diffstat (limited to 'lib/web/webprofile.cpp')
-rw-r--r-- | lib/web/webprofile.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/web/webprofile.cpp b/lib/web/webprofile.cpp index dca639b..37338b9 100644 --- a/lib/web/webprofile.cpp +++ b/lib/web/webprofile.cpp @@ -14,7 +14,7 @@ WebProfile *WebProfile::profile = nullptr; -WebProfile* loadProfile(const QString &name, const QHash<QString, QString> &defaults, const QString &path) +WebProfile* loadProfile(const QString &name, const QHash<QString, QString> &defaults, const QString &path, QObject *parent) { WebProfile *profile = nullptr; #ifdef QT_DEBUG @@ -24,15 +24,15 @@ WebProfile* loadProfile(const QString &name, const QHash<QString, QString> &defa if(name.isEmpty()) { // a default otr profile - profile = new WebProfile(QObject::tr("Off-the-record"), path, nullptr); + profile = new WebProfile(QObject::tr("Off-the-record"), path, parent); } else if(config.value("otr").toBool()) { // a named otr profile - profile = new WebProfile(config.value("name", name).toString(), path, nullptr); + profile = new WebProfile(config.value("name", name).toString(), path, parent); } else { // a named profile - profile = new WebProfile(name, config.value("name", name).toString(), path, nullptr); + profile = new WebProfile(name, config.value("name", name).toString(), path, parent); } Q_CHECK_PTR(profile); |