+void MainWindow::device_selected()
+{
+ // Set the title to include the device/file name
+ const shared_ptr<sigrok::Device> device = session_.device();
+ if (!device)
+ return;
+
+ const string display_name = device_manager_.get_display_name(device);
+ setWindowTitle(tr("%1 - PulseView").arg(display_name.c_str()));
+}
+