Specify reason when on game leave; fix #2624 (#2633)

* fix #2624

* feedback++
This commit is contained in:
ctrlaltca 2017-04-24 22:20:08 +02:00 committed by GitHub
parent 38ad71b06a
commit 29904c49da
8 changed files with 48 additions and 16 deletions

View file

@ -6,6 +6,7 @@
#include <QCompleter>
#include "tab.h"
#include "pb/serverinfo_game.pb.h"
#include "pb/event_leave.pb.h"
class AbstractClient;
class CardDatabase;
@ -186,6 +187,7 @@ private:
void createPlayAreaWidget(bool bReplay=false);
void createDeckViewContainerWidget(bool bReplay=false);
void createReplayDock();
QString getLeaveReason(Event_Leave::LeaveReason reason);
signals:
void gameClosing(TabGame *tab);
void playerAdded(Player *player);