mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2026-07-16 22:55:29 +08:00
Misc
Terminate the child thread properly Optimize write logic
This commit is contained in:
@@ -30,7 +30,9 @@ MainWindow::MainWindow(QWidget *parent):
|
||||
settings->setIniCodec("UTF-8");
|
||||
|
||||
pm3Thread = new QThread(this);
|
||||
connect(QApplication::instance(), &QApplication::aboutToQuit, pm3Thread, &QThread::quit);
|
||||
pm3 = new PM3Process(pm3Thread);
|
||||
connect(pm3Thread, &QThread::finished, pm3, &PM3Process::deleteLater);
|
||||
pm3Thread->start();
|
||||
pm3state = false;
|
||||
clientWorkingDir = new QDir;
|
||||
|
||||
Reference in New Issue
Block a user