mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Qt: use complete base name in case file has periods in it
This commit is contained in:
parent
3e330bed7c
commit
e1b2d752ab
@ -1166,7 +1166,7 @@ void MainWindow::addFilesToPlaylist(QStringList files)
|
|||||||
|
|
||||||
if (info.isFile())
|
if (info.isFile())
|
||||||
{
|
{
|
||||||
itemToAdd["label"] = info.baseName();
|
itemToAdd["label"] = info.completeBaseName();
|
||||||
itemToAdd["path"] = path;
|
itemToAdd["path"] = path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1267,7 +1267,7 @@ void MainWindow::addFilesToPlaylist(QStringList files)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fileBaseNameArray = fileInfo.baseName().toUtf8();
|
fileBaseNameArray = fileInfo.completeBaseName().toUtf8();
|
||||||
pathArray = QDir::toNativeSeparators(fileName).toUtf8();
|
pathArray = QDir::toNativeSeparators(fileName).toUtf8();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user