Skip to content

Commit

Permalink
[bugfix] should not start process if fail to open file
Browse files Browse the repository at this point in the history
  • Loading branch information
klesh committed Apr 6, 2020
1 parent de84db6 commit 3ae1fc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/uploadthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ void UploadThread::run()
if (!stream->open(QIODevice::ReadOnly)) {
_job.status = Error;
_job.msg = tr("Failed to open file %1").arg(_job.path);
APP->sendNotification(_job.msg, tr("Error"), QSystemTrayIcon::MessageIcon::Warning);
APP->sendNotification(_job.msg, tr("Error"), QSystemTrayIcon::MessageIcon::Critical);
return;
}
}

Expand Down

0 comments on commit 3ae1fc2

Please sign in to comment.