mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 20:35:49 +01:00
return from function in error path.
2008-02-20 Benjamin Otte <otte@gnome.org> * gfile.c: (g_file_mount_mountable): return from function in error path. svn path=/trunk/; revision=6544
This commit is contained in:
parent
87d23f18ec
commit
ea6cf346d6
@ -1,3 +1,8 @@
|
|||||||
|
2008-02-20 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
|
* gfile.c: (g_file_mount_mountable):
|
||||||
|
return from function in error path.
|
||||||
|
|
||||||
2008-02-18 Sylvain Pasche <sylvain.pasche@gmail.com>
|
2008-02-18 Sylvain Pasche <sylvain.pasche@gmail.com>
|
||||||
|
|
||||||
* gfile.h:
|
* gfile.h:
|
||||||
|
@ -3308,13 +3308,15 @@ g_file_mount_mountable (GFile *file,
|
|||||||
|
|
||||||
iface = G_FILE_GET_IFACE (file);
|
iface = G_FILE_GET_IFACE (file);
|
||||||
|
|
||||||
if (iface->mount_mountable == NULL)
|
if (iface->mount_mountable == NULL) {
|
||||||
g_simple_async_report_error_in_idle (G_OBJECT (file),
|
g_simple_async_report_error_in_idle (G_OBJECT (file),
|
||||||
callback,
|
callback,
|
||||||
user_data,
|
user_data,
|
||||||
G_IO_ERROR,
|
G_IO_ERROR,
|
||||||
G_IO_ERROR_NOT_SUPPORTED,
|
G_IO_ERROR_NOT_SUPPORTED,
|
||||||
_("Operation not supported"));
|
_("Operation not supported"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
(* iface->mount_mountable) (file,
|
(* iface->mount_mountable) (file,
|
||||||
flags,
|
flags,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user