1
0
Fork 0

clear the current selection when the list refreshes

This commit is contained in:
Kevin Matz 2023-04-14 13:16:50 -04:00
parent 9b4e9eda03
commit 75598b4359
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ DeviceWindow::DeviceWindow(QWidget *parent)
});
// action connections
connect(ui->actionRefreshList, &QAction::triggered, model, &WidgetModel::rescanPorts);
connect(ui->actionRefreshList, &QAction::triggered, this, [this](){
ui->widgetView->clearSelection();
selectionChanged(QModelIndex(), QModelIndex());
});
connect(ui->actionAbout, &QAction::triggered,
this, [this](){
QString title = tr("About") % " " % qAppName();