Stop exit timer in onQuit.
Activate error message boxes.
This commit is contained in:
parent
427a272f8f
commit
44ad3caf2b
@ -86,13 +86,13 @@ void MainWindow::onRestartExitTimer() {
|
||||
}
|
||||
|
||||
void MainWindow::onQuit() {
|
||||
// if (!m_worker->updateProcessRunning()) {
|
||||
qCritical() << "ON QUIT: EXIT CODE" << QString::number(m_worker->returnCode());
|
||||
m_exitTimer->stop();
|
||||
qCritical() << QString("ON QUIT: EXIT CODE %1").arg(m_worker->returnCode());
|
||||
qApp->exit(m_worker->returnCode());
|
||||
//}
|
||||
}
|
||||
|
||||
void MainWindow::onSetProgress(quint8 v) {
|
||||
qCritical() << "ON SET PROGRESS" << v;
|
||||
ui->updateProgress->setValue(v);
|
||||
}
|
||||
|
||||
@ -118,5 +118,5 @@ void MainWindow::onAppendText(QString text, QString suffix) {
|
||||
}
|
||||
|
||||
void MainWindow::onShowErrorMessage(QString title, QString text) {
|
||||
// QMessageBox::critical(this, title, text, QMessageBox::Ok);
|
||||
QMessageBox::critical(this, title, text, QMessageBox::Ok);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user