mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-14 19:18:55 -07:00
Selecting game already open in a tab brings user to that tab. (#4653)
* When trying to join a game from GameSelector that's already been joined by you, navigate to its game tab. * return immediately, do not change button states Co-authored-by: ebbit1q <ebbit1q@gmail.com>
This commit is contained in:
parent
8e4ddf366c
commit
72743e834e
10 changed files with 29 additions and 11 deletions
|
|
@ -21,7 +21,7 @@ UserMessagePosition::UserMessagePosition(QTextCursor &cursor)
|
|||
relativePosition = cursor.position() - block.position();
|
||||
}
|
||||
|
||||
ChatView::ChatView(const TabSupervisor *_tabSupervisor,
|
||||
ChatView::ChatView(TabSupervisor *_tabSupervisor,
|
||||
const UserlistProxy *_userlistProxy,
|
||||
TabGame *_game,
|
||||
bool _showTimestamps,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class ChatView : public QTextBrowser
|
|||
{
|
||||
Q_OBJECT
|
||||
protected:
|
||||
const TabSupervisor *const tabSupervisor;
|
||||
TabSupervisor *const tabSupervisor;
|
||||
TabGame *const game;
|
||||
|
||||
private:
|
||||
|
|
@ -83,7 +83,7 @@ private slots:
|
|||
void actMessageClicked();
|
||||
|
||||
public:
|
||||
ChatView(const TabSupervisor *_tabSupervisor,
|
||||
ChatView(TabSupervisor *_tabSupervisor,
|
||||
const UserlistProxy *_userlistProxy,
|
||||
TabGame *_game,
|
||||
bool _showTimestamps,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue