From 1d16c0cf77b47c433159298e3154d16582bc1182 Mon Sep 17 00:00:00 2001 From: fourtf Date: Tue, 4 Sep 2018 22:05:27 +0200 Subject: [PATCH] fixed crasherino --- src/widgets/Window.cpp | 3 ++- src/widgets/splits/SplitContainer.cpp | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/widgets/Window.cpp b/src/widgets/Window.cpp index 6df88b40..e993fe67 100644 --- a/src/widgets/Window.cpp +++ b/src/widgets/Window.cpp @@ -41,7 +41,8 @@ Window::Window(WindowType type) this->addShortcuts(); this->addLayout(); - getApp()->accounts->twitch.currentUserChanged.connect( + this->signalHolder_.managedConnect( + getApp()->accounts->twitch.currentUserChanged, [this] { this->onAccountSelected(); }); this->onAccountSelected(); diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index 25e93220..58e2eb95 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -456,9 +456,10 @@ void SplitContainer::paintEvent(QPaintEvent *) if (notebook != nullptr) { if (notebook->getPageCount() > 1) { - text += "\n\nTip: After adding a split you can hold to " - "move it or split it " - "further."; + text += + "\n\nTip: After adding a split you can hold to " + "move it or split it " + "further."; } }