Commit 2d02df53 authored by Volker Krause's avatar Volker Krause
Browse files

Store feedback settings next to the application settings

parent 11ced149
......@@ -105,7 +105,18 @@ static QMetaEnum statisticsCollectionModeEnum()
std::unique_ptr<QSettings> ProviderPrivate::makeSettings() const
std::unique_ptr<QSettings> s(new QSettings(QStringLiteral("KDE"), QStringLiteral("UserFeedback.") + productId));
// attempt to put our settings next to the application ones,
// so replicate how QSettings handles this
auto org =
#ifdef Q_OS_MAC
QCoreApplication::organizationDomain().isEmpty() ? QCoreApplication::organizationName() : QCoreApplication::organizationDomain();
QCoreApplication::organizationName().isEmpty() ? QCoreApplication::organizationDomain() : QCoreApplication::organizationName();
if (org.isEmpty())
org = QLatin1String("Unknown Organization");
std::unique_ptr<QSettings> s(new QSettings(org, QStringLiteral("UserFeedback.") + productId));
return s;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment