From 0c6a9359fdff92d6c343d5603036944ae1215d2f Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Mon, 5 Apr 2021 18:26:28 +0200 Subject: [PATCH] Avoid using QString::back() for compatibility with older Linux distros Old Qt versions lack QString::back() Closes #200 --- downloadthread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloadthread.cpp b/downloadthread.cpp index 1fa0e5c..1633286 100644 --- a/downloadthread.cpp +++ b/downloadthread.cpp @@ -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";