Show confirmation dialog before aborting a job.

This commit is contained in:
LoRd_MuldeR 2014-02-26 00:54:33 +01:00
parent 65e7bc32e0
commit 87fbc8a8b4

View File

@ -312,7 +312,14 @@ void MainWindow::startButtonPressed(void)
void MainWindow::abortButtonPressed(void)
{
ENSURE_APP_IS_IDLE();
m_jobList->abortJob(ui->jobsView->currentIndex());
m_status = STATUS_BLOCKED;
if(QMessageBox::question(this, tr("Abort Job?"), tr("<nobr>Do you really want to <b>abort</b> the selected job now?</nobr>"), tr("Back"), tr("Abort Job")) == 1)
{
m_jobList->abortJob(ui->jobsView->currentIndex());
}
m_status = STATUS_IDLE;
}
/*