Commit 316b4329 authored by Mike Kremer's avatar Mike Kremer
Browse files

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 9a5bdeea
......@@ -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);
......
......@@ -104,6 +104,8 @@ class ProcessManagerWidget : public QWidget, public Ui::ProcessManagerWidget
void removeJob(QString _jobName);
int getNumJobs() { return processMap_.size(); }
private slots:
void cancelButtonPressed();
......
Supports Markdown
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