mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-17 01:10:10 +00:00
Fix incorrect path encoding handling in debug message
This commit is contained in:
parent
bcca1beb69
commit
2ffcc2a2b4
@ -266,7 +266,7 @@ bool Launcher::MainDialog::setupLauncherSettings()
|
||||
paths.append(userPath + QString(Config::LauncherSettings::sLauncherConfigFileName));
|
||||
|
||||
foreach (const QString &path, paths) {
|
||||
qDebug() << "Loading config file:" << qPrintable(path);
|
||||
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||
QFile file(path);
|
||||
if (file.exists()) {
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
@ -297,7 +297,7 @@ bool Launcher::MainDialog::setupGameSettings()
|
||||
QString path = userPath + QLatin1String("openmw.cfg");
|
||||
QFile file(path);
|
||||
|
||||
qDebug() << "Loading config file:" << qPrintable(path);
|
||||
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||
|
||||
if (file.exists()) {
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
@ -320,7 +320,7 @@ bool Launcher::MainDialog::setupGameSettings()
|
||||
paths.append(userPath + QString("openmw.cfg"));
|
||||
|
||||
foreach (const QString &path, paths) {
|
||||
qDebug() << "Loading config file:" << qPrintable(path);
|
||||
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||
|
||||
QFile file(path);
|
||||
if (file.exists()) {
|
||||
|
@ -138,7 +138,7 @@ void Wizard::MainWizard::setupGameSettings()
|
||||
QString path(userPath + QLatin1String("openmw.cfg"));
|
||||
QFile file(path);
|
||||
|
||||
qDebug() << "Loading config file:" << qPrintable(path);
|
||||
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||
|
||||
if (file.exists()) {
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
@ -163,7 +163,7 @@ void Wizard::MainWizard::setupGameSettings()
|
||||
paths.append(globalPath + QLatin1String("openmw.cfg"));
|
||||
|
||||
foreach (const QString &path, paths) {
|
||||
qDebug() << "Loading config file:" << qPrintable(path);
|
||||
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||
|
||||
QFile file(path);
|
||||
if (file.exists()) {
|
||||
@ -197,7 +197,7 @@ void Wizard::MainWizard::setupLauncherSettings()
|
||||
|
||||
QFile file(path);
|
||||
|
||||
qDebug() << "Loading config file:" << qPrintable(path);
|
||||
qDebug() << "Loading config file:" << path.toUtf8().constData();
|
||||
|
||||
if (file.exists()) {
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
|
Loading…
Reference in New Issue
Block a user