Fix tab direction change crash (#4248)

* Fix tab direction change crash

* changelog

* Update CHANGELOG.md

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
kornes
2022-12-19 17:19:09 +00:00
committed by GitHub
parent 69a73e3291
commit bc5a03af26
2 changed files with 6 additions and 3 deletions
+5 -3
View File
@@ -80,9 +80,11 @@ Window::Window(WindowType type, QWidget *parent)
});
if (type == WindowType::Main || type == WindowType::Popup)
{
getSettings()->tabDirection.connect([this](int val) {
this->notebook_->setTabLocation(NotebookTabLocation(val));
});
getSettings()->tabDirection.connect(
[this](int val) {
this->notebook_->setTabLocation(NotebookTabLocation(val));
},
this->signalHolder_);
}
}