diff --git a/src/widgets/split.cpp b/src/widgets/split.cpp index a2c80173..9135a926 100644 --- a/src/widgets/split.cpp +++ b/src/widgets/split.cpp @@ -314,7 +314,7 @@ void Split::doPopup() Split *split = new Split(static_cast(window.getNotebook().getOrAddSelectedPage())); - split->setChannel(this->getChannel()); + split->setChannel(this->getIndirectChannel()); window.getNotebook().getOrAddSelectedPage()->addToLayout(split); window.show(); diff --git a/src/widgets/window.cpp b/src/widgets/window.cpp index ce6f3b7f..94971f4c 100644 --- a/src/widgets/window.cpp +++ b/src/widgets/window.cpp @@ -164,7 +164,9 @@ void Window::closeEvent(QCloseEvent *event) this->closed.invoke(); - QApplication::exit(); + if (this->type == Window::Main) { + QApplication::exit(); + } } } // namespace widgets