diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-13 15:29:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 15:29:13 +0200 |
commit | 1a4874e178860d723760d98be337cd4640b06a30 (patch) | |
tree | afe20068da407a90e3ec5b38e3d8ae02a5afb2cd /src/yuzu/game_list.cpp | |
parent | Merge pull request #11766 from liamwhite/open-sesame (diff) | |
parent | qt: ensure worker cancellation is complete before clearing (diff) | |
download | yuzu-1a4874e178860d723760d98be337cd4640b06a30.tar yuzu-1a4874e178860d723760d98be337cd4640b06a30.tar.gz yuzu-1a4874e178860d723760d98be337cd4640b06a30.tar.bz2 yuzu-1a4874e178860d723760d98be337cd4640b06a30.tar.lz yuzu-1a4874e178860d723760d98be337cd4640b06a30.tar.xz yuzu-1a4874e178860d723760d98be337cd4640b06a30.tar.zst yuzu-1a4874e178860d723760d98be337cd4640b06a30.zip |
Diffstat (limited to 'src/yuzu/game_list.cpp')
-rw-r--r-- | src/yuzu/game_list.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 74f48031a..2bb1a0239 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -826,12 +826,13 @@ void GameList::PopulateAsync(QVector<UISettings::GameDir>& game_dirs) { tree_view->setColumnHidden(COLUMN_SIZE, !UISettings::values.show_size); tree_view->setColumnHidden(COLUMN_PLAY_TIME, !UISettings::values.show_play_time); + // Before deleting rows, cancel the worker so that it is not using them + emit ShouldCancelWorker(); + // Delete any rows that might already exist if we're repopulating item_model->removeRows(0, item_model->rowCount()); search_field->clear(); - emit ShouldCancelWorker(); - GameListWorker* worker = new GameListWorker(vfs, provider, game_dirs, compatibility_list, play_time_manager, system); |