[gthumb] Fixed crash when opening the preferences dialog
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Fixed crash when opening the preferences dialog
- Date: Tue, 23 Nov 2010 18:42:26 +0000 (UTC)
commit bfa536ba9212e2a61a08c76b5a77016767528c54
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Nov 23 19:40:45 2010 +0100
Fixed crash when opening the preferences dialog
Use the user's home folder as default start-up location.
[bug #635617]
gthumb/dlg-preferences.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/dlg-preferences.c b/gthumb/dlg-preferences.c
index bc77796..ac352bb 100644
--- a/gthumb/dlg-preferences.c
+++ b/gthumb/dlg-preferences.c
@@ -262,6 +262,8 @@ dlg_preferences (GthBrowser *browser)
}
startup_location = eel_gconf_get_path (PREF_STARTUP_LOCATION, NULL);
+ if (startup_location == NULL)
+ startup_location = g_strdup (get_home_uri ());
file_source = gth_main_get_file_source_for_uri (startup_location);
if (GTH_IS_FILE_SOURCE_VFS (file_source)) {
GFile *location;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]