aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/FilePicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/FilePicker.cpp')
-rw-r--r--embed/mozilla/FilePicker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp
index 188cae460..540d58cae 100644
--- a/embed/mozilla/FilePicker.cpp
+++ b/embed/mozilla/FilePicker.cpp
@@ -314,7 +314,11 @@ NS_IMETHODIMP GFilePicker::SetDefaultString(const nsAString& aDefaultString)
NS_ConvertUCS2toUTF8 (aDefaultString).get())
#endif
+#if MOZILLA_SNAPSHOT < 16
+ if (aDefaultString)
+#else
if (aDefaultString.Length())
+#endif
{
/* set_current_name takes UTF-8, not a filename */
#if MOZILLA_SNAPSHOT < 16