diff --git a/CHANGELOG.md b/CHANGELOG.md index 6564d9a71..d40b10579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -88,6 +88,8 @@ - Bugfix: Re-add date of build to the "About" page on nightly versions. (#3464) - Bugfix: Fixed crash that would occur if the user right-clicked AutoMod badge. (#3496) - Bugfix: Fixed being unable to drag the user card window from certain spots. (#3508) +- Bugfix: Fixed being unable to open a usercard from inside a usercard while "Automatically close user popup when it loses focus" was enabled. (#3518) +- Bugfix: Usercards no longer close when the originating window (e.g. a search popup) is closed. (#3518) - Dev: Batch checking live status for channels with live notifications that aren't connected. (#3442) - Dev: Add GitHub action to test builds without precompiled headers enabled. (#3327) - Dev: Renamed CMake's build option `USE_SYSTEM_QT5KEYCHAIN` to `USE_SYSTEM_QTKEYCHAIN`. (#3103) diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 61e9f2af9..653177fc3 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -2060,12 +2060,8 @@ void ChannelView::hideEvent(QHideEvent *) void ChannelView::showUserInfoPopup(const QString &userName) { - QWidget *userCardParent = this; -#ifdef Q_OS_MACOS - // Order of closing/opening/killing widgets when the "Automatically close user info popups" setting is enabled is special on macOS, so user info popups should always use the main window as its parent - userCardParent = + QWidget *userCardParent = static_cast(&(getApp()->windows->getMainWindow())); -#endif auto *userPopup = new UserInfoPopup(getSettings()->autoCloseUserPopup, userCardParent); userPopup->setData(userName, this->hasSourceChannel()