mirror of
https://github.com/vale981/Taevitas
synced 2025-03-04 17:11:40 -05:00
yeah, close it, but close it right :)
This commit is contained in:
parent
1d909a9528
commit
1419ee73b9
1 changed files with 3 additions and 4 deletions
|
@ -92,15 +92,14 @@ void MainWindow::closeEvent ( QCloseEvent * event ) {
|
|||
if ( status == RECORDING ) {
|
||||
setStatus( STOPPING );
|
||||
startStopRecording();
|
||||
recThread->quit();
|
||||
recThread->wait();
|
||||
event->ignore();
|
||||
|
||||
QTimer::singleShot( 1000, this, &MainWindow::close );
|
||||
return;
|
||||
}
|
||||
|
||||
event->ignore();
|
||||
recThread->quit();
|
||||
recThread->wait();
|
||||
event->accept();
|
||||
}
|
||||
|
||||
void MainWindow::setStatus( STATUS status ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue