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:
@@ -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_);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user