diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:24:40 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-22 00:24:40 +0800 |
commit | 897b55ac60bca1e62869cf2f76d485bbd7db2064 (patch) | |
tree | cf965dfeb2c2de93960ccd053c33990d1de2aa92 | |
parent | 7b771c7fe5ec0f01ee960d2c8e8e05e1122b2da6 (diff) | |
download | gsoc2013-empathy-897b55ac60bca1e62869cf2f76d485bbd7db2064.tar gsoc2013-empathy-897b55ac60bca1e62869cf2f76d485bbd7db2064.tar.gz gsoc2013-empathy-897b55ac60bca1e62869cf2f76d485bbd7db2064.tar.bz2 gsoc2013-empathy-897b55ac60bca1e62869cf2f76d485bbd7db2064.tar.lz gsoc2013-empathy-897b55ac60bca1e62869cf2f76d485bbd7db2064.tar.xz gsoc2013-empathy-897b55ac60bca1e62869cf2f76d485bbd7db2064.tar.zst gsoc2013-empathy-897b55ac60bca1e62869cf2f76d485bbd7db2064.zip |
Check if URI is not NULL before adding it to the recent manager.
svn path=/trunk/; revision=1905
-rw-r--r-- | src/empathy-ft-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/empathy-ft-manager.c b/src/empathy-ft-manager.c index 2a9d1b229..c89c03e5c 100644 --- a/src/empathy-ft-manager.c +++ b/src/empathy-ft-manager.c @@ -525,7 +525,8 @@ ft_manager_state_changed_cb (EmpathyTpFile *tp_file, manager = gtk_recent_manager_get_default (); uri = g_object_get_data (G_OBJECT (tp_file), "uri"); - gtk_recent_manager_add_item (manager, uri); + if (uri != NULL) + gtk_recent_manager_add_item (manager, uri); } ft_manager_update_ft_row (ft_manager, tp_file); |