Skip to content
Snippets Groups Projects
Commit 3e93c364 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

stay at JOB_PROPERTIES if no job message

parent 4f876777
No related branches found
No related tags found
1 merge request!1996Block alpha/lambda distributions (from r21.1)
...@@ -83,11 +83,15 @@ void JobPropertiesWidget::setJobItem(JobItem* jobItem) ...@@ -83,11 +83,15 @@ void JobPropertiesWidget::setJobItem(JobItem* jobItem)
m_jobItem = jobItem; m_jobItem = jobItem;
m_propertiesModel->setJobItem(m_jobItem); m_propertiesModel->setJobItem(m_jobItem);
if (m_jobItem) { if (m_jobItem) {
if (m_jobItem->isFailed()) { if (m_jobItem->isFailed())
m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::red); m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::red);
m_tabWidget->setCurrentIndex(JOB_MESSAGES); else
} else
m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::black); m_tabWidget->tabBar()->setTabTextColor(JOB_MESSAGES, Qt::black);
if (m_jobItem->comments().isEmpty())
m_tabWidget->setCurrentIndex(JOB_PROPERTIES);
else
m_tabWidget->setCurrentIndex(JOB_MESSAGES);
m_commentsEditor->setText(m_jobItem->comments()); m_commentsEditor->setText(m_jobItem->comments());
notifyJobPropertyChange(); notifyJobPropertyChange();
......
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