Get rid of unneeded `+ '/'` for cForceWorkingDir

It does the same on its own
This commit is contained in:
Ilya Fedin 2023-08-14 11:05:05 +04:00 committed by John Preston
parent f3572e52ac
commit c5424d0a9a
1 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ bool CheckPortableVersionFolder() {
if (cAlphaVersion()) {
Assert(*AlphaPrivateKey != 0);
cForceWorkingDir(portable + '/');
cForceWorkingDir(portable);
QDir().mkpath(cWorkingDir() + u"tdata"_q);
cSetAlphaPrivateKey(QByteArray(AlphaPrivateKey));
if (!key.open(QIODevice::WriteOnly)) {
@ -239,7 +239,7 @@ bool CheckPortableVersionFolder() {
if (!QDir(portable).exists()) {
return true;
}
cForceWorkingDir(portable + '/');
cForceWorkingDir(portable);
if (!key.exists()) {
return true;
}