From 01bda9c2f68128de327c6f5b97e578c91227f4fd Mon Sep 17 00:00:00 2001 From: Tal Neoran Date: Sun, 30 May 2021 13:22:26 +0300 Subject: [PATCH] Fix tab direction not applying to popup window (#2839) --- src/widgets/Window.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/widgets/Window.cpp b/src/widgets/Window.cpp index 62bd975f..6913d9e8 100644 --- a/src/widgets/Window.cpp +++ b/src/widgets/Window.cpp @@ -66,14 +66,18 @@ Window::Window(WindowType type) if (type == WindowType::Main) { this->resize(int(600 * this->scale()), int(500 * this->scale())); - getSettings()->tabDirection.connect([this](int val) { - this->notebook_->setTabDirection(NotebookTabDirection(val)); - }); } else { this->resize(int(300 * this->scale()), int(500 * this->scale())); } + + if (type == WindowType::Main || type == WindowType::Popup) + { + getSettings()->tabDirection.connect([this](int val) { + this->notebook_->setTabDirection(NotebookTabDirection(val)); + }); + } } WindowType Window::getType()