diff --git a/src/widgets/helper/ChannelView.hpp b/src/widgets/helper/ChannelView.hpp index 56dd15aa0..52d08803a 100644 --- a/src/widgets/helper/ChannelView.hpp +++ b/src/widgets/helper/ChannelView.hpp @@ -217,7 +217,8 @@ public: pajlada::Signals::Signal mouseDown; pajlada::Signals::NoArgSignal selectionChanged; - pajlada::Signals::Signal tabHighlightRequested; + pajlada::Signals::Signal + tabHighlightRequested; pajlada::Signals::NoArgSignal liveStatusChanged; pajlada::Signals::Signal linkClicked; pajlada::Signals::Signal diff --git a/src/widgets/splits/SplitContainer.cpp b/src/widgets/splits/SplitContainer.cpp index e8f654d0a..45ae0ced2 100644 --- a/src/widgets/splits/SplitContainer.cpp +++ b/src/widgets/splits/SplitContainer.cpp @@ -215,11 +215,11 @@ void SplitContainer::addSplit(Split *split) conns.managedConnect(split->getChannelView().tabHighlightRequested, [this, &channelView = split->getChannelView()]( - HighlightState state, MessagePtr message) { + HighlightState state, const MessagePtr &message) { if (this->tab_ != nullptr) { this->tab_->setHighlightState( - state, channelView, std::move(message)); + state, channelView, message); } });