From 2ec814367356001fc255bc0137c15eb68826c85b Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 4 Sep 2016 14:49:29 +0200 Subject: [PATCH] MainWindow: Fix crash on closing last session --- pv/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.30.2