mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55: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)
|
||||
{
|
||||
folder = QString::fromStdString(mp);
|
||||
if (!folder.isEmpty() && folder.back() == '\\')
|
||||
if (folder.right(1) == '\\')
|
||||
folder.chop(1);
|
||||
configFilename = folder+"/config.txt";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue