mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-17 03:04:03 +01:00
RomSearcherThread: terminate in deconstructor
This commit is contained in:
1 parent
a1368e39d2
commit
7b820fcb42
1 file changed
+6
@@ -21,6 +21,12 @@ RomSearcherThread::RomSearcherThread(QObject *parent) : QThread(parent)
|
||||
|
||||
RomSearcherThread::~RomSearcherThread(void)
|
||||
{
|
||||
// kill the thread when we're running
|
||||
if (this->isRunning())
|
||||
{
|
||||
this->terminate();
|
||||
this->wait();
|
||||
}
|
||||
}
|
||||
|
||||
void RomSearcherThread::SetDirectory(QString directory)
|
||||
|
||||
Reference in new issue
Block a user