Merge lp:~larsu/indicator-messages/lp1389725 into lp:indicator-messages/15.04

Proposed by Lars Karlitski
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 432
Merged at revision: 432
Proposed branch: lp:~larsu/indicator-messages/lp1389725
Merge into: lp:indicator-messages/15.04
Diff against target: 21 lines (+6/-3)
1 file modified
src/im-desktop-menu.c (+6/-3)
To merge this branch: bzr merge lp:~larsu/indicator-messages/lp1389725
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+241079@code.launchpad.net

Commit message

desktop menu: don't warn when no default handler for a mime type is found

Description of the change

desktop menu: don't warn when no default handler for a mime type is found

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

looks good, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/im-desktop-menu.c'
2--- src/im-desktop-menu.c 2014-04-07 13:22:06 +0000
3+++ src/im-desktop-menu.c 2014-11-07 13:54:52 +0000
4@@ -81,12 +81,15 @@
5 const gchar *uri_scheme)
6 {
7 GAppInfo *default_info;
8- gboolean is_default;
9+ gboolean is_default = FALSE;
10
11 default_info = g_app_info_get_default_for_uri_scheme (uri_scheme);
12- is_default = g_app_info_equal (info, default_info);
13+ if (default_info)
14+ {
15+ is_default = g_app_info_equal (info, default_info);
16+ g_object_unref (default_info);
17+ }
18
19- g_object_unref (default_info);
20 return is_default;
21 }
22

Subscribers

People subscribed via source and target branches