Commit 95b6d913 authored by Mike Kremer's avatar Mike Kremer

Fixed nulll pointer access bug when using blocking widgets.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9168 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a5146161
...@@ -222,12 +222,13 @@ void Core::slotFinishJob(QString _jobId ) { ...@@ -222,12 +222,13 @@ void Core::slotFinishJob(QString _jobId ) {
if ( getJob(_jobId, id) ) { if ( getJob(_jobId, id) ) {
// Update gui // Update gui
if(!currentJobs[id]->blocking) if(!currentJobs[id]->blocking) {
processManager_->removeJob(_jobId); processManager_->removeJob(_jobId);
// Hide widget if there's no job left // Hide widget if there's no job left
if(processManager_->getNumJobs() == 0) processManager_->hide(); if(processManager_->getNumJobs() == 0) processManager_->hide();
else {
} else {
BlockingWidget* w = 0; BlockingWidget* w = 0;
w = dynamic_cast<BlockingWidget*>(currentJobs[id]->blockingWidget); w = dynamic_cast<BlockingWidget*>(currentJobs[id]->blockingWidget);
if(w != 0) { if(w != 0) {
......
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