From 16a9fe011de82d0a173b14cef5ce463ed68e3eac Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sun, 12 Jan 2025 01:41:28 -0800 Subject: [PATCH] make closeRequest call close by default --- cockatrice/src/client/tabs/tab.cpp | 5 +++++ cockatrice/src/client/tabs/tab.h | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cockatrice/src/client/tabs/tab.cpp b/cockatrice/src/client/tabs/tab.cpp index 84fdf2924..7b316dfe6 100644 --- a/cockatrice/src/client/tabs/tab.cpp +++ b/cockatrice/src/client/tabs/tab.cpp @@ -42,3 +42,8 @@ void Tab::deleteCardInfoPopup(const QString &cardName) } } } + +void Tab::closeRequest(bool /*forced*/) +{ + close(); +} \ No newline at end of file diff --git a/cockatrice/src/client/tabs/tab.h b/cockatrice/src/client/tabs/tab.h index 619bf47c9..cec40c373 100644 --- a/cockatrice/src/client/tabs/tab.h +++ b/cockatrice/src/client/tabs/tab.h @@ -56,9 +56,7 @@ public: * * @param forced whether this close request was initiated by the user or forced by the server. */ - virtual void closeRequest(bool /*forced*/ = false) - { - } + virtual void closeRequest(bool forced = false); virtual void tabActivated() { }