1
0
Fork 0
mirror of synced 2024-05-05 04:52:38 +12:00

Don't crash when there is no selected records

This commit is contained in:
Rafał Mikrut 2021-11-24 15:29:25 +01:00
parent 4a202633ee
commit e5331635db

View file

@ -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 {