Don't crash when there is no selected records

pull/464/head
Rafał Mikrut 2 years ago
parent 4a202633ee
commit e5331635db

@ -89,6 +89,10 @@ pub fn hardlink_symlink(tree_view: gtk::TreeView, column_file_name: i32, column_
}
}
if selected_rows.is_empty() {
return; // No selected rows
}
let mut current_symhardlink_data: Option<SymHardlinkData> = None;
let mut current_selected_index = 0;
loop {

Loading…
Cancel
Save