X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=2558cb07692fe497e87d262fad574bc81ad70bfd;hp=4f6bc41d551c4182919539cb3810882f9e10e60d;hb=7e0c99bf95836c89574b53ae3fa7840e2ddca77d;hpb=2b05d3110a0a50ce93c8c887a2dc00c1375e92fa diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 4f6bc41..2558cb0 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -882,8 +882,11 @@ void MainWindow::device_selected() { // Set the title to include the device/file name const shared_ptr device = session_.device(); - if (!device) + + if (!device) { + main_bar_->reset_device_selector(); return; + } const string display_name = device->display_name(device_manager_); setWindowTitle(tr("%1 - PulseView").arg(display_name.c_str()));