aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-chooser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-file-chooser.c')
-rw-r--r--lib/ephy-file-chooser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c
index ec8cf2d27..668c7b522 100644
--- a/lib/ephy-file-chooser.c
+++ b/lib/ephy-file-chooser.c
@@ -237,7 +237,10 @@ ephy_file_chooser_new (const char *title,
* _after_ our instance_init and construct-param setters will have
* run.
*/
- ephy_file_chooser_set_persist_key (dialog, persist_key);
+ if (persist_key != NULL)
+ {
+ ephy_file_chooser_set_persist_key (dialog, persist_key);
+ }
if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
{