Fix Qt chinese words encode problem on Windows

This commit is contained in:
LFsWang 2016-03-17 17:18:45 +08:00
parent de7ecee516
commit 933af7af66
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ Config::Config() {
// TODO: Don't hardcode the path; let the frontend decide where to put the config files.
qt_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "qt-config.ini";
FileUtil::CreateFullPath(qt_config_loc);
qt_config = new QSettings(QString::fromStdString(qt_config_loc), QSettings::IniFormat);
qt_config = new QSettings(QString::fromLocal8Bit(qt_config_loc.c_str()), QSettings::IniFormat);
Reload();
}