Don't assume there is an active connection when loading devices list

Instead listen to Controller::activeConnectionChanged and reset model
when the active connection is changed.

Fix #413
This commit is contained in:
Carl Schwan
2021-06-30 11:23:00 +02:00
parent dd841bb836
commit 54f5097ff4
2 changed files with 22 additions and 9 deletions

View File

@@ -32,5 +32,6 @@ public:
Q_INVOKABLE void setName(int index, const QString &name);
private:
void fetchDevices();
QVector<Quotient::Device> m_devices;
};