bugfix refreshSpectatorsDisplay(); threadsafe now
This commit is contained in:
@@ -646,6 +646,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
connect(this, SIGNAL(signalRefreshPlayerName()), this, SLOT(refreshPlayerName()));
|
connect(this, SIGNAL(signalRefreshPlayerName()), this, SLOT(refreshPlayerName()));
|
||||||
connect(this, SIGNAL(signalRefreshButton()), this, SLOT(refreshButton()));
|
connect(this, SIGNAL(signalRefreshButton()), this, SLOT(refreshButton()));
|
||||||
connect(this, SIGNAL(signalRefreshGameLabels(int)), this, SLOT(refreshGameLabels(int)));
|
connect(this, SIGNAL(signalRefreshGameLabels(int)), this, SLOT(refreshGameLabels(int)));
|
||||||
|
connect(this, SIGNAL(signalRefreshSpectatorsDisplay()), this, SLOT(refreshSpectatorsDisplay()));
|
||||||
connect(this, SIGNAL(signalSetPlayerAvatar(int, QString)), this, SLOT(setPlayerAvatar(int, QString)));
|
connect(this, SIGNAL(signalSetPlayerAvatar(int, QString)), this, SLOT(setPlayerAvatar(int, QString)));
|
||||||
connect(this, SIGNAL(signalGuiUpdateDone()), this, SLOT(guiUpdateDone()));
|
connect(this, SIGNAL(signalGuiUpdateDone()), this, SLOT(guiUpdateDone()));
|
||||||
connect(this, SIGNAL(signalMeInAction()), this, SLOT(meInAction()));
|
connect(this, SIGNAL(signalMeInAction()), this, SLOT(meInAction()));
|
||||||
@@ -680,6 +681,7 @@ gameTableImpl::gameTableImpl(ConfigFile *c, QMainWindow *parent)
|
|||||||
connect(this, SIGNAL(signalNetClientSpectatorLeft(unsigned)), this, SLOT(netClientSpectatorLeft(unsigned)));
|
connect(this, SIGNAL(signalNetClientSpectatorLeft(unsigned)), this, SLOT(netClientSpectatorLeft(unsigned)));
|
||||||
connect(this, SIGNAL(signalNetClientSpectatorJoined(unsigned)), this, SLOT(netClientSpectatorJoined(unsigned)));
|
connect(this, SIGNAL(signalNetClientSpectatorJoined(unsigned)), this, SLOT(netClientSpectatorJoined(unsigned)));
|
||||||
|
|
||||||
|
|
||||||
#ifdef GUI_800x480
|
#ifdef GUI_800x480
|
||||||
connect( tabsButton, SIGNAL( clicked() ), this, SLOT( tabsButtonClicked() ) );
|
connect( tabsButton, SIGNAL( clicked() ), this, SLOT( tabsButtonClicked() ) );
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ signals:
|
|||||||
void signalRefreshPlayerName();
|
void signalRefreshPlayerName();
|
||||||
void signalRefreshButton();
|
void signalRefreshButton();
|
||||||
void signalRefreshGameLabels(int);
|
void signalRefreshGameLabels(int);
|
||||||
|
void signalRefreshSpectatorsDisplay();
|
||||||
|
|
||||||
void signalSetPlayerAvatar(int, QString);
|
void signalSetPlayerAvatar(int, QString);
|
||||||
void signalGuiUpdateDone();
|
void signalGuiUpdateDone();
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ void GuiWrapper::SignalNetClientPlayerJoined(unsigned playerId, const string &pl
|
|||||||
void GuiWrapper::SignalNetClientPlayerChanged(unsigned playerId, const string &newPlayerName)
|
void GuiWrapper::SignalNetClientPlayerChanged(unsigned playerId, const string &newPlayerName)
|
||||||
{
|
{
|
||||||
myStartWindow->signalNetClientPlayerChanged(playerId, QString::fromUtf8(newPlayerName.c_str()));
|
myStartWindow->signalNetClientPlayerChanged(playerId, QString::fromUtf8(newPlayerName.c_str()));
|
||||||
myW->refreshSpectatorsDisplay();
|
myW->signalRefreshSpectatorsDisplay();
|
||||||
}
|
}
|
||||||
void GuiWrapper::SignalNetClientPlayerLeft(unsigned playerId, const string &playerName, int removeReason)
|
void GuiWrapper::SignalNetClientPlayerLeft(unsigned playerId, const string &playerName, int removeReason)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user