Commit 981c6daf authored by Guido Gunther's avatar Guido Gunther
Browse files

prefs: Don't crash in application mode

Using application mode with a desktop file doesn't give us a fully
populated profile dir don't try to continue on in this case.
parent eae0580c
Pipeline #52543 failed with stages
in 0 seconds
......@@ -2082,9 +2082,11 @@ setup_general_page (PrefsDialog *dialog)
if (ephy_embed_shell_get_mode (ephy_embed_shell_get_default ()) == EPHY_EMBED_SHELL_MODE_APPLICATION) {
dialog->webapp = ephy_web_application_for_profile_directory (ephy_profile_dir ());
prefs_dialog_update_webapp_icon (dialog, dialog->webapp->icon_url);
gtk_entry_set_text (GTK_ENTRY (dialog->webapp_url), dialog->webapp->url);
gtk_entry_set_text (GTK_ENTRY (dialog->webapp_title), dialog->webapp->name);
if (dialog->webapp) {
prefs_dialog_update_webapp_icon (dialog, dialog->webapp->icon_url);
gtk_entry_set_text (GTK_ENTRY (dialog->webapp_url), dialog->webapp->url);
gtk_entry_set_text (GTK_ENTRY (dialog->webapp_title), dialog->webapp->name);
}
}
settings = ephy_settings_get (EPHY_PREFS_SCHEMA);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment