diff --git a/src/termwidgetholder.cpp b/src/termwidgetholder.cpp index aa7df472..95c556c4 100644 --- a/src/termwidgetholder.cpp +++ b/src/termwidgetholder.cpp @@ -397,10 +397,9 @@ void TermWidgetHolder::setCurrentTerminal(TermWidget* term) void TermWidgetHolder::handle_finished() { TermWidget * w = qobject_cast(sender()); - if (!w) + if (w == nullptr) { - qDebug() << "TermWidgetHolder::handle_finished: Unknown object to handle" << w; - assert(0); + qFatal("TermWidgetHolder::handle_finished: Unknown object to handle"); } splitCollapse(w); }