mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Fix index 0 tab not functioning
This commit is contained in:
parent
a51ca9f9cb
commit
82b257b589
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue