Commit 73d97e6b authored by Kevin Funk's avatar Kevin Funk
Browse files

Only fail if KJob::error != 0

KJob::errorText().isEmpty() is not a valid indicator if a job has failed (see KJob
API documentation)
parent 6f577187
......@@ -162,7 +162,8 @@ public:
loading = false;
ProjectController* projCtrl = Core::self()->projectControllerInternal();
if (job->errorText().isEmpty() && !Core::self()->shuttingDown()) {
if (job->error() == 0 && !Core::self()->shuttingDown()) {
if(fullReload)
projCtrl->projectModel()->appendRow(topItem);
......@@ -210,7 +211,7 @@ public:
progress->setDone();
ProjectController* projCtrl = Core::self()->projectControllerInternal();
if(job->errorText().isEmpty() && !Core::self()->shuttingDown()) {
if(job->error() == 0 && !Core::self()->shuttingDown()) {
loading=false;
projCtrl->projectModel()->appendRow(topItem);
projCtrl->projectImportingFinished( project );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment