aboutsummaryrefslogtreecommitdiff
path: root/chrome/js/redirector-ui.js
diff options
context:
space:
mode:
authorEinar Egilsson2012-03-29 23:05:52 -0700
committerEinar Egilsson2012-03-29 23:05:52 -0700
commit87233b7a0f0e5669a564ae5e5d58900a61446f83 (patch)
treed258dbb19093f85512df99ae3cdc7e23b82ff5eb /chrome/js/redirector-ui.js
parent211b9c04f45b30992b9c8d976a6ff594bbd291f3 (diff)
parentffc38e7b522ab874c67722b2b5327cefc0c58a21 (diff)
Merge pull request #2 from rampion/master
Two bugfixes from @rampion to fix exporting in OSX.
Diffstat (limited to 'chrome/js/redirector-ui.js')
-rw-r--r--chrome/js/redirector-ui.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/js/redirector-ui.js b/chrome/js/redirector-ui.js
index bd709cc..49526e3 100644
--- a/chrome/js/redirector-ui.js
+++ b/chrome/js/redirector-ui.js
@@ -70,6 +70,7 @@ function trPlural(name, count) {
function getFile(captionKey, mode) {
var picker = new FilePicker(window, tr(captionKey), mode);
picker.defaultExtension = ".rjson";
+ picker.defaultString = "Redirector.rjson";
var dir = prefs.defaultDir;
if (dir) {
picker.displayDirectory = new LocalFile(dir);
@@ -79,7 +80,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;
}