History

small revisions to bracketing/variable name

Elisa Lupin-Jimenez committed 9 years ago

Commit af432081 parent 8c9ce821 file · +4 −6Browse files

Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/FileScriptingInterface.cpp+4−6
@@ -40,8 +40,8 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 39 unmodified lines
4040 if (!isZip) {
4141 tempDir.remove(fileName);
4242 } else {
43− QTemporaryDir blocks;
44− tempDir = blocks.path();
43+ QTemporaryDir zipTemp;
44+ tempDir = zipTemp.path();
4545 path.remove("file:///");
4646 }
4747
@@ -56,8 +56,7 @@ void FileScriptingInterface::runUnzip(QString path, QUrl url, bool autoAdd, bool · 8 unmodified lines
5656
5757 if (filename != "") {
5858 qCDebug(scriptengine) << "File to upload: " + filename;
59− }
60− else {
59+ } else {
6160 qCDebug(scriptengine) << "Unzip failed";
6261 }
6362 emit unzipResult(path, fileList, autoAdd, isZip);
@@ -76,8 +75,7 @@ QStringList FileScriptingInterface::unzipFile(QString path, QString tempDir) { · 12 unmodified lines
7675
7776 if (!list.isEmpty()) {
7877 return list;
79− }
80− else {
78+ } else {
8179 qCDebug(scriptengine) << "Extraction failed";
8280 return list;
8381 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t