Don't canonicalize cwd path for dir list

This commit is contained in:
Christopher Lübbemeier 2018-03-14 20:36:00 +01:00
parent 25a567d62f
commit a971d5f56e

View File

@ -357,7 +357,7 @@ fn tree_reload(store: &gtk::TreeStore, state: &State) {
/// replaced with the new path and the last entry is marked active.
fn update_dir_list(dir: &str, dir_list_model: &gtk::TreeStore, dir_list: &gtk::ComboBox) {
// The current working directory path.
let complete_path = Path::new(dir).canonicalize().unwrap();
let complete_path = Path::new(dir);
let mut path = PathBuf::new();
let mut components = complete_path.components();
let mut next = components.next();