mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-04 02:45:12 +00:00
Qt: fix futurewatcher cancel
This commit is contained in:
parent
eb5ea82bb1
commit
1a07f40c4b
@ -133,8 +133,10 @@ namespace gui
|
||||
template <typename T>
|
||||
void stop_future_watcher(QFutureWatcher<T>& watcher, bool cancel, std::shared_ptr<atomic_t<bool>> cancel_flag = nullptr)
|
||||
{
|
||||
if (watcher.isStarted() || watcher.isRunning())
|
||||
if (watcher.isPaused() || watcher.isRunning())
|
||||
{
|
||||
watcher.resume();
|
||||
|
||||
if (cancel)
|
||||
{
|
||||
watcher.cancel();
|
||||
|
Loading…
Reference in New Issue
Block a user