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