From: Soeren Apel Date: Sun, 4 Sep 2016 12:49:29 +0000 (+0200) Subject: MainWindow: Fix crash on closing last session X-Git-Tag: pulseview-0.4.0~245 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2ec814367356001fc255bc0137c15eb68826c85b;p=pulseview.git MainWindow: Fix crash on closing last session --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 92c92d02..a8f093bc 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -260,7 +260,7 @@ void MainWindow::remove_session(shared_ptr session) // Update the window title if there is no view left to // generate focus change events if (sessions_.empty()) - on_session_name_changed(); + setWindowTitle(WindowTitle); } void MainWindow::setup_ui()