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

This commit is contained in:
Cameron Gutman committed 2018-07-18 21:27:43 -07:00
1 parent 06501bd4b7
commit 5ee1358712
2 files changed
+52

No files matched your search

+2
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();