mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 04:23:55 -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 "pb/session_commands.pb.h"
|
||||||
#include "user_info_box.h"
|
#include "user_info_box.h"
|
||||||
|
|
||||||
UserListManager::UserListManager(AbstractClient *_client, QWidget *parent)
|
UserListManager::UserListManager(AbstractClient *_client, QObject *parent)
|
||||||
: QWidget(parent), client(_client), ownUserInfo(nullptr)
|
: QObject(parent), client(_client), ownUserInfo(nullptr)
|
||||||
{
|
{
|
||||||
connect(client, &AbstractClient::userJoinedEventReceived, this, &UserListManager::processUserJoinedEvent);
|
connect(client, &AbstractClient::userJoinedEventReceived, this, &UserListManager::processUserJoinedEvent);
|
||||||
connect(client, &AbstractClient::userLeftEventReceived, this, &UserListManager::processUserLeftEvent);
|
connect(client, &AbstractClient::userLeftEventReceived, this, &UserListManager::processUserLeftEvent);
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class Response;
|
||||||
class ServerInfo_User;
|
class ServerInfo_User;
|
||||||
class TabSupervisor;
|
class TabSupervisor;
|
||||||
|
|
||||||
class UserListManager : public QWidget, public UserListProxy
|
class UserListManager : public QObject, public UserListProxy
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
@ -38,7 +38,7 @@ private slots:
|
||||||
void processRemoveFromListEvent(const Event_RemoveFromList &event);
|
void processRemoveFromListEvent(const Event_RemoveFromList &event);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit UserListManager(AbstractClient *_client, QWidget *parent = nullptr);
|
explicit UserListManager(AbstractClient *_client, QObject *parent = nullptr);
|
||||||
~UserListManager() override;
|
~UserListManager() override;
|
||||||
|
|
||||||
[[nodiscard]] QMap<QString, ServerInfo_User> getAllUsersList() const
|
[[nodiscard]] QMap<QString, ServerInfo_User> getAllUsersList() const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue