| 563 | } |
| 564 | |
| 565 | void GameListWidget::cancelRefresh() |
| 566 | { |
| 567 | if (!m_refresh_thread) |
| 568 | return; |
| 569 | |
| 570 | m_refresh_thread->cancel(); |
| 571 | m_refresh_thread->wait(); |
| 572 | |
| 573 | // Cancelling might not be instant if we're say, scanning a gzip dump. Wait until it's done. |
| 574 | while (m_refresh_thread) |
| 575 | QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 1); |
| 576 | } |
| 577 | |
| 578 | void GameListWidget::reloadThemeSpecificImages() |
| 579 | { |
no test coverage detected