Fix crash when closing and quickly opening a split, then running /clearmessages (#3852)
This commit is contained in:
@@ -932,7 +932,11 @@ void CommandController::initialize(Settings &, Paths &paths)
|
||||
auto *currentPage = dynamic_cast<SplitContainer *>(
|
||||
getApp()->windows->getMainWindow().getNotebook().getSelectedPage());
|
||||
|
||||
currentPage->getSelectedSplit()->getChannelView().clearMessages();
|
||||
if (auto split = currentPage->getSelectedSplit())
|
||||
{
|
||||
split->getChannelView().clearMessages();
|
||||
}
|
||||
|
||||
return "";
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user