Commit 0a3c582b authored by Kurt Hindenburg's avatar Kurt Hindenburg

Add nullptr check found by coverity scan

parent c0aff2e9
......@@ -180,8 +180,10 @@ void TerminalHeaderBar::updateSpecialState(ViewProperties *item)
{
auto controller = dynamic_cast<SessionController*>(item);
m_statusIconReadOnly->setVisible(controller->isReadOnly());
m_statusIconCopyInput->setVisible(controller->isCopyInputActive());
if (controller != nullptr) {
m_statusIconReadOnly->setVisible(controller->isReadOnly());
m_statusIconCopyInput->setVisible(controller->isCopyInputActive());
}
}
void TerminalHeaderBar::paintEvent(QPaintEvent *paintEvent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment