diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-07 12:24:09 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-07 12:24:09 +0300 |
commit | 896fe069b6e1f0406ba483dd82480e32ffe2a5df (patch) | |
tree | 53aa546185b39970093b180344d75b775ca5b7f3 /src/dialogs/RoomSettings.h | |
parent | Put back removed links (diff) | |
download | nheko-896fe069b6e1f0406ba483dd82480e32ffe2a5df.tar.xz |
Use proxy objects on lambdas instead of raw pointers
When the object is destroyed the connections will be removed automatically by Qt. fixes #433
Diffstat (limited to 'src/dialogs/RoomSettings.h')
-rw-r--r-- | src/dialogs/RoomSettings.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dialogs/RoomSettings.h b/src/dialogs/RoomSettings.h index ac9097dd..dd729250 100644 --- a/src/dialogs/RoomSettings.h +++ b/src/dialogs/RoomSettings.h @@ -53,6 +53,8 @@ class ThreadProxy : public QObject signals: void error(const QString &msg); void avatarChanged(const QImage &img); + void nameEventSent(const QString &); + void topicEventSent(); }; class EditModal : public QWidget @@ -66,9 +68,6 @@ public: signals: void nameChanged(const QString &roomName); - void nameEventSentCb(const QString &newName); - void topicEventSentCb(); - void stateEventErrorCb(const QString &msg); private: QString roomId_; @@ -138,6 +137,7 @@ private: QString room_id_; QImage avatarImg_; + QLabel *roomNameLabel_ = nullptr; QLabel *errorLabel_ = nullptr; LoadingIndicator *spinner_ = nullptr; |