Commit fad666f1 authored by Mike Kremer's avatar Mike Kremer

Hide process manager window if all jobs have been processed.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9163 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9ac08e51
......@@ -224,6 +224,9 @@ void Core::slotFinishJob(QString _jobId ) {
// Update gui
if(!currentJobs[id]->blocking)
processManager_->removeJob(_jobId);
// Hide widget if there's no job left
if(processManager_->getNumJobs() == 0) processManager_->hide();
else {
BlockingWidget* w = 0;
w = dynamic_cast<BlockingWidget*>(currentJobs[id]->blockingWidget);
......
......@@ -103,6 +103,8 @@ class ProcessManagerWidget : public QWidget, public Ui::ProcessManagerWidget
int _minSteps = 0, int _maxSteps = 100);
void removeJob(QString _jobName);
int getNumJobs() { return processMap_.size(); }
private slots:
......
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