Fix crash when closing all tabs on macOS (#3860)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Daniel Sage 2022-07-23 09:42:41 -04:00 committed by GitHub
parent 044dd8a616
commit 3b9ac7456a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -40,7 +40,7 @@
- Bugfix: Fixed message only showing a maximum of one global FrankerFaceZ badge even if the user has multiple. (#3818)
- Bugfix: Add icon in the CMake macOS bundle. (#3832)
- Bugfix: Adopt popup windows in order to force floating behavior on some window managers. (#3836)
- Bugfix: Fix split focusing being broken in certain circumstances when the "Show input when it's empty" setting was disabled. (#3838)
- Bugfix: Fix split focusing being broken in certain circumstances when the "Show input when it's empty" setting was disabled. (#3838, #3860)
- Bugfix: Always refresh tab when a contained split's channel is set. (#3849)
- Dev: Remove official support for QMake. (#3839)
- Dev: Rewrite LimitedQueue (#3798)

View file

@ -209,11 +209,13 @@ Split::Split(QWidget *parent)
}
});
this->input_->ui_.textEdit->focused.connect([this] {
this->signalHolder_.managedConnect(this->input_->ui_.textEdit->focused,
[this] {
// Forward textEdit's focused event
this->focused.invoke();
});
this->input_->ui_.textEdit->focusLost.connect([this] {
this->signalHolder_.managedConnect(this->input_->ui_.textEdit->focusLost,
[this] {
// Forward textEdit's focusLost event
this->focusLost.invoke();
});