History

Remove BatchLoader::errorLoadingFile and reorder properties

Ryan Huffman committed 11 years ago

Commit 22cdf1c1 parent e27db482 files · +2 −5Browse files

Showing the changes to libraries/script-engine/src/BatchLoader.cpp (1 of 2 files). Show all

Unified · Split

libraries/script-engine/src/BatchLoader.cpp+1−3
@@ -18,9 +18,9 @@ · 17 unmodified lines
18 18
19BatchLoader::BatchLoader(const QList<QUrl>& urls) 19BatchLoader::BatchLoader(const QList<QUrl>& urls)
20 : QObject(),20 : QObject(),
21 _started(false),
21 _finished(false),22 _finished(false),
22 _urls(urls.toSet()),23 _urls(urls.toSet()),
23 _started(false),
24 _data() {24 _data() {
25}25}
26 26
@@ -39,7 +39,6 @@ void BatchLoader::start() { · 12 unmodified lines
39 39
40 connect(reply, &QNetworkReply::finished, [=]() {40 connect(reply, &QNetworkReply::finished, [=]() {
41 if (reply->error()) {41 if (reply->error()) {
42 emit errorLoadingFile(url);
43 _data.insert(url, QString());42 _data.insert(url, QString());
44 } else {43 } else {
45 _data.insert(url, reply->readAll());44 _data.insert(url, reply->readAll());
@@ -65,7 +64,6 @@ void BatchLoader::start() { · 19 unmodified lines
65 QTextStream in(&scriptFile);64 QTextStream in(&scriptFile);
66 _data.insert(url, in.readAll());65 _data.insert(url, in.readAll());
67 } else {66 } else {
68 emit errorLoadingFile(url);
69 _data.insert(url, QString());67 _data.insert(url, QString());
70 }68 }
71 }69 }

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