fix local mention crash

This commit is contained in:
Zach H 2015-07-03 00:28:41 -04:00
parent 14e8fcdd44
commit e2be1cd897
3 changed files with 52 additions and 39 deletions

View file

@ -60,6 +60,7 @@ private:
void addCloseButtonToTab(Tab *tab, int tabIndex);
QString sanitizeTabName(QString dirty) const;
QString sanitizeHtml(QString dirty) const;
bool isLocalGame;
public:
TabSupervisor(AbstractClient *_client, QWidget *parent = 0);
~TabSupervisor();
@ -67,6 +68,7 @@ public:
void start(const ServerInfo_User &userInfo);
void startLocal(const QList<AbstractClient *> &_clients);
void stop();
bool isALocalGame() const { return isLocalGame; }
int getGameCount() const { return gameTabs.size(); }
TabUserLists *getUserListsTab() const { return tabUserLists; }
ServerInfo_User *getUserInfo() const { return userInfo; }