fix: actual proper fix for 471a3b1
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
|
||||
#include <QApplication>
|
||||
#include <QStandardPaths>
|
||||
#include <QStringBuilder>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <QMetaEnum>
|
||||
@ -151,10 +150,7 @@ Settings::Settings()
|
||||
|
||||
if (configPath.isEmpty()) {
|
||||
// Should be %LOCALAPPDATA%\<APPNAME> under Windows, ~/.config/<APPNAME> under Linux.
|
||||
// Sadly <APPNAME> is unknown when Settings object is created (it's before the creation
|
||||
// of QApplication), so we'll need to append the app name manually.
|
||||
configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) %
|
||||
QDir::separator() % QLatin1String("Pineapple Pictures");
|
||||
configPath = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
|
||||
}
|
||||
|
||||
m_qsettings = new QSettings(QDir(configPath).absoluteFilePath("config.ini"), QSettings::IniFormat, this);
|
||||
|
Reference in New Issue
Block a user