X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fmainwindow.cpp;h=2558cb07692fe497e87d262fad574bc81ad70bfd;hb=26f209b713171014a4f6dc3546b64bf691727cfd;hp=4f6bc41d551c4182919539cb3810882f9e10e60d;hpb=40ec0302a21055e85572ced539c457f0d8484c82;p=pulseview.git 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()));