utf8 windows test
This commit is contained in:
@@ -43,11 +43,21 @@ void CardDeckStyleReader::readStyleFile(QString file) {
|
||||
//if style file failed --> default style fallback
|
||||
if(QFile(file).exists()) {
|
||||
currentFileName = QFile(file).fileName();
|
||||
#ifdef _WIN32
|
||||
tinyFileName = currentFileName.toStdString();
|
||||
#else
|
||||
tinyFileName = currentFileName.toUtf8().constData();
|
||||
#endif
|
||||
|
||||
}
|
||||
else {
|
||||
currentFileName = QFile(QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str())+"gfx/cards/default/defaultdeckstyle.xml").fileName();
|
||||
tinyFileName = currentFileName.toUtf8().constData();
|
||||
#ifdef _WIN32
|
||||
tinyFileName = currentFileName.toStdString();
|
||||
#else
|
||||
tinyFileName = currentFileName.toUtf8().constData();
|
||||
#endif
|
||||
|
||||
fallBack = 1;
|
||||
}
|
||||
QFileInfo info(currentFileName);
|
||||
|
||||
Reference in New Issue
Block a user