aboutsummaryrefslogtreecommitdiff
path: root/chrome/js/redirector-ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/js/redirector-ui.js')
-rw-r--r--chrome/js/redirector-ui.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/js/redirector-ui.js b/chrome/js/redirector-ui.js
index bd709cc..2cd548a 100644
--- a/chrome/js/redirector-ui.js
+++ b/chrome/js/redirector-ui.js
@@ -79,7 +79,9 @@ function getFile(captionKey, mode) {
if (picker.show() == picker.returnCancel) {
return null;
}
- prefs.defaultDir = picker.displayDirectory.path;
+ if (picker.displayDirectory) {
+ prefs.defaultDir = picker.displayDirectory.path;
+ }
return picker.file;
}