Implement a proper destructor for ComputerManager to prevent polling threads from living beyond QGuiApplication

This commit is contained in:
Cameron Gutman 2018-07-18 21:27:43 -07:00
commit 5ee1358712
2 changed files with 52 additions and 0 deletions

View file

@ -249,6 +249,8 @@ class ComputerManager : public QObject
public:
explicit ComputerManager(QObject *parent = nullptr);
virtual ~ComputerManager();
Q_INVOKABLE void startPolling();
Q_INVOKABLE void stopPollingAsync();