vfs_dialog: ensure that one item is always selected
This commit is contained in:
@@ -77,9 +77,10 @@ vfs_dialog_path_widget::vfs_dialog_path_widget(const QString& name, const QStrin
|
|||||||
|
|
||||||
// Select new path
|
// Select new path
|
||||||
m_selected_config_label->setText(path.isEmpty() ? EmptyPath : path);
|
m_selected_config_label->setText(path.isEmpty() ? EmptyPath : path);
|
||||||
update_selection();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update_selection();
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(m_dir_list, &QListWidget::itemDoubleClicked, this, [](QListWidgetItem* item)
|
connect(m_dir_list, &QListWidget::itemDoubleClicked, this, [](QListWidgetItem* item)
|
||||||
|
|||||||
Reference in New Issue
Block a user