Clone in a terminal:
Commit eedc8cf
Johan Mattsson - 2015-12-16T02:24:20+00:00
eedc8cfd14fb5f36fdfbbbf2dfba3626a01b5968johan.mattsson.m@gmail.com

Add support for pasting full paths in the file dialog

Changed files (1)

Diff

diff --git a/libbirdfont/FileDialogTab.vala b/libbirdfont/FileDialogTab.valaindex 83723bd..01e7fe5 100644--- a/libbirdfont/FileDialogTab.vala+++ b/libbirdfont/FileDialogTab.vala@@ -224,7 +224,12 @@ public class FileDialogTab : Table { 			if (selected_filename == "") { 				action.cancel (); 			} else {-				f = get_child (current_dir, selected_filename);+				if (selected_filename.index_of (":\\\\") != -1) {+					f = File.new_for_path (selected_filename);+				} else {+					f = get_child (current_dir, selected_filename);+				}+				 				action.file_selected ((!)f.get_path ()); 			} 		});

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112