]> sigrok.org Git - pulseview.git/commitdiff
MainWindow: Fix crash on closing last session
authorSoeren Apel <redacted>
Sun, 4 Sep 2016 12:49:29 +0000 (14:49 +0200)
committerUwe Hermann <redacted>
Sun, 4 Sep 2016 12:56:58 +0000 (14:56 +0200)
pv/mainwindow.cpp

index 92c92d023225a7d5fa7cb5f54764d4e1218b2a12..a8f093bccd6eb051c533452b3e86b490625b2bff 100644 (file)
@@ -260,7 +260,7 @@ void MainWindow::remove_session(shared_ptr<Session> 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()