mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +02:00
Fixed temp dir access
This commit is contained in:
parent
9ea9baeadf
commit
5d2fb68924
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url) {
|
|||
qDebug() << "Path where download is saved: " + path;
|
||||
QString fileName = "/" + path.section("/", -1);
|
||||
qDebug() << "Filename to remove from temp path: " + fileName;
|
||||
QString tempDir = path.remove(fileName);
|
||||
QString tempDir = path;
|
||||
tempDir.remove(fileName);
|
||||
qDebug() << "Temporary directory at: " + tempDir;
|
||||
QString file = unzipFile(path, tempDir);
|
||||
if (file != "") {
|
||||
|
|
Loading…
Reference in a new issue