clear the current selection when the list refreshes
This commit is contained in:
parent
9b4e9eda03
commit
75598b4359
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue