Skip user input events when adding torrent

Closes #7327.
This commit is contained in:
Vladimir Golovnev 2017-08-23 11:14:34 +03:00 committed by sledgehammer999
parent cfae8c6399
commit cbfdc8f721
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -1761,7 +1761,7 @@ bool Session::findIncompleteFiles(TorrentInfo &torrentInfo, QString &savePath) c
torrentInfo.renameFile(i, filePath + QB_EXT); torrentInfo.renameFile(i, filePath + QB_EXT);
} }
if ((i % 100) == 0) if ((i % 100) == 0)
qApp->processEvents(); qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
} }
return found; return found;