Skip to content
Snippets Groups Projects
Commit 2a9c93c7 authored by David Li's avatar David Li
Browse files

allow rerunning job (in case something unexpected happened and output is currupted)

parent 3804686b
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ bool JobListWidget::jobItemCanBeRun(const QModelIndex &index) ...@@ -129,7 +129,7 @@ bool JobListWidget::jobItemCanBeRun(const QModelIndex &index)
const JobItem *jobItem = m_jobModel->getJobItemForIndex(index); const JobItem *jobItem = m_jobModel->getJobItemForIndex(index);
// if(jobItem->isCompleted() || jobItem->isFailed() || jobItem->isRunning()) return false; // if(jobItem->isCompleted() || jobItem->isFailed() || jobItem->isRunning()) return false;
if(jobItem->isCompleted() || jobItem->isRunning()) return false; if(/*jobItem->isCompleted() || */jobItem->isRunning()) return false;
return true; return true;
} }
...@@ -235,7 +235,7 @@ void JobListWidget::showContextMenu(const QPoint &pnt) ...@@ -235,7 +235,7 @@ void JobListWidget::showContextMenu(const QPoint &pnt)
for(int i =0; i<selected.count(); ++i) { for(int i =0; i<selected.count(); ++i) {
JobItem *jobItem = m_jobModel->getJobItemForIndex(selected.at(i)); JobItem *jobItem = m_jobModel->getJobItemForIndex(selected.at(i));
QAction *action = new QAction(QString("to ").append(jobItem->itemName()), this); QAction *action = new QAction(QString("to ").append(jobItem->itemName()), this);
connect(action, SIGNAL(triggered()), m_signalMapper, SLOT(map())); connect(action, SIGNAL(triggered()), m_signalMapper, SLOT(map()));
m_signalMapper->setMapping(action, i); m_signalMapper->setMapping(action, i);
menu_equalize.addAction(action); menu_equalize.addAction(action);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment