For Qt GUI. Added logic to show busy cursor when closing out an AVI recording. Fix for overloading GUI cursor, always call QGuiApplication::restoreOverrideCursor() to reset cursor to default.

This commit is contained in:
mjbudd77 2022-01-16 07:08:37 -05:00
parent 7ecff090f2
commit 2a1c529231
2 changed files with 4 additions and 2 deletions

View File

@ -3843,11 +3843,13 @@ void consoleWin_t::aviRecordStop(void)
{
if ( aviRecordRunning() )
{
QGuiApplication::setOverrideCursor( QCursor(Qt::BusyCursor) );
FCEU_WRAPPER_LOCK();
aviDiskThread->requestInterruption();
aviDiskThread->quit();
aviDiskThread->wait(10000);
FCEU_WRAPPER_UNLOCK();
QGuiApplication::restoreOverrideCursor();
}
}

View File

@ -203,7 +203,7 @@ bool TASEDITOR_PROJECT::save(const char* differentName, bool inputInBinary, bool
{
delete progressDialog; progressDialog = NULL;
}
QGuiApplication::setOverrideCursor( QCursor(Qt::ArrowCursor) );
QGuiApplication::restoreOverrideCursor();
//taseditorWindow.mustUpdateMouseCursor = true;
return true;
@ -407,7 +407,7 @@ bool TASEDITOR_PROJECT::load(const char* fullName)
delete progressDialog; progressDialog = NULL;
}
// restore mouse cursor shape
QGuiApplication::setOverrideCursor( QCursor(Qt::ArrowCursor) );
QGuiApplication::restoreOverrideCursor();
//taseditorWindow.mustUpdateMouseCursor = true;
return true;
}