mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Avoid using QString::back() for compatibility with older Linux distros
Old Qt versions lack QString::back() Closes #200
This commit is contained in:
parent
1aaf22d7ab
commit
0c6a9359fd
1 changed files with 1 additions and 1 deletions
|
@ -932,7 +932,7 @@ bool DownloadThread::_customizeImage()
|
||||||
for (auto mp : mountpoints)
|
for (auto mp : mountpoints)
|
||||||
{
|
{
|
||||||
folder = QString::fromStdString(mp);
|
folder = QString::fromStdString(mp);
|
||||||
if (!folder.isEmpty() && folder.back() == '\\')
|
if (folder.right(1) == '\\')
|
||||||
folder.chop(1);
|
folder.chop(1);
|
||||||
configFilename = folder+"/config.txt";
|
configFilename = folder+"/config.txt";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue