Fix bug that causes random crashes.

This commit is contained in:
Black Hat
2018-03-02 19:58:55 +08:00
parent d4c2a1ed50
commit 4347755a71
5 changed files with 29 additions and 21 deletions

View File

@@ -14,7 +14,6 @@ class Controller : public QObject
{
Q_OBJECT
Q_PROPERTY(RoomListModel *roomListModel READ getRoomListModel NOTIFY roomListModelChanged)
Q_PROPERTY(QMatrixClient::Connection *connection READ getConnection WRITE setConnection NOTIFY connectionChanged)
Q_PROPERTY(bool isLogin READ getIsLogin WRITE setIsLogin NOTIFY isLoginChanged)
Q_PROPERTY(QString userID READ getUserID WRITE setUserID NOTIFY userIDChanged)
@@ -31,9 +30,6 @@ public:
// All the non-Q_INVOKABLE functions.
// All the Q_PROPERTYs.
RoomListModel* roomListModel;
RoomListModel* getRoomListModel() { return roomListModel; }
QMatrixClient::Connection* m_connection;
QMatrixClient::Connection* getConnection() { return m_connection; }
void setConnection(QMatrixClient::Connection* conn);
@@ -71,7 +67,6 @@ private:
void reconnect();
signals:
void roomListModelChanged();
void connectionChanged();
void isLoginChanged();
void userIDChanged();