Fix index 0 tab not functioning

This commit is contained in:
ZeldaZach 2025-01-15 23:55:51 -05:00
parent a51ca9f9cb
commit 82b257b589
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -11,8 +11,8 @@
#include "pb/session_commands.pb.h"
#include "user_info_box.h"
UserListManager::UserListManager(AbstractClient *_client, QWidget *parent)
: QWidget(parent), client(_client), ownUserInfo(nullptr)
UserListManager::UserListManager(AbstractClient *_client, QObject *parent)
: QObject(parent), client(_client), ownUserInfo(nullptr)
{
connect(client, &AbstractClient::userJoinedEventReceived, this, &UserListManager::processUserJoinedEvent);
connect(client, &AbstractClient::userLeftEventReceived, this, &UserListManager::processUserLeftEvent);

View file

@ -17,7 +17,7 @@ class Response;
class ServerInfo_User;
class TabSupervisor;
class UserListManager : public QWidget, public UserListProxy
class UserListManager : public QObject, public UserListProxy
{
Q_OBJECT
@ -38,7 +38,7 @@ private slots:
void processRemoveFromListEvent(const Event_RemoveFromList &event);
public:
explicit UserListManager(AbstractClient *_client, QWidget *parent = nullptr);
explicit UserListManager(AbstractClient *_client, QObject *parent = nullptr);
~UserListManager() override;
[[nodiscard]] QMap<QString, ServerInfo_User> getAllUsersList() const