blob: 1622374851e9373649dbe2dd4a08609490259f90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
diff -up nautilus-2.22.2/libnautilus-private/nautilus-autorun.c.fix-open-folder nautilus-2.22.2/libnautilus-private/nautilus-autorun.c
--- nautilus-2.22.2/libnautilus-private/nautilus-autorun.c.fix-open-folder 2008-04-17 22:30:04.000000000 -0400
+++ nautilus-2.22.2/libnautilus-private/nautilus-autorun.c 2008-04-17 22:30:10.000000000 -0400
@@ -1200,15 +1200,6 @@ typedef struct {
gpointer user_data;
} AutorunData;
-
-static void
-autorun_open_folder_for_mount (AutorunData *data)
-{
- if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_MEDIA_AUTOMOUNT_OPEN) &&
- data->open_window_func != NULL)
- data->open_window_func (data->mount, data->user_data);
-}
-
static void
autorun_guessed_content_type_callback (GObject *source_object,
GAsyncResult *res,
@@ -1237,13 +1228,14 @@ autorun_guessed_content_type_callback (G
}
g_strfreev (guessed_content_type);
} else {
- open_folder = TRUE;
+ if (eel_preferences_get_boolean (NAUTILUS_PREFERENCES_MEDIA_AUTOMOUNT_OPEN))
+ open_folder = TRUE;
}
}
/* only open the folder once.. */
- if (open_folder) {
- autorun_open_folder_for_mount (data);
+ if (open_folder && data->open_window_func != NULL) {
+ data->open_window_func (data->mount, data->user_data);
}
g_object_unref (data->mount);
|