mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 11:04:28 +01:00
Qt: Cancel existing BIOS search on refresh
Stops lockups if you set a large directory.
This commit is contained in:
1 parent
d9587e20c0
commit
b601c49f6c
1 file changed
+4
@@ -65,6 +65,7 @@ void BIOSSettingsWidget::refreshList()
|
||||
{
|
||||
if (m_refresh_thread)
|
||||
{
|
||||
m_refresh_thread->requestInterruption();
|
||||
m_refresh_thread->wait();
|
||||
delete m_refresh_thread;
|
||||
}
|
||||
@@ -176,6 +177,9 @@ void BIOSSettingsWidget::RefreshThread::run()
|
||||
{
|
||||
for (const QFileInfo& info : dir.entryInfoList(QDir::Files))
|
||||
{
|
||||
if (isInterruptionRequested())
|
||||
break;
|
||||
|
||||
BIOSInfo bi;
|
||||
QString full_path(info.absoluteFilePath());
|
||||
if (!IsBIOS(full_path.toUtf8().constData(), bi.version, bi.description, bi.region, bi.zone))
|
||||
|
||||
Reference in new issue
Block a user