projects
/
imoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30268a4
)
Handle null buddy icon on icon update
author
Drew Fisher
<drew.m.fisher@gmail.com>
Sat, 17 May 2014 18:48:02 +0000
(11:48 -0700)
committer
Drew Fisher
<drew.m.fisher@gmail.com>
Sun, 18 May 2014 05:24:37 +0000
(22:24 -0700)
This makes no sense. WHY WOULD THIS HAPPEN? But it does.
ribbon/ribbonblist.cpp
patch
|
blob
|
history
diff --git
a/ribbon/ribbonblist.cpp
b/ribbon/ribbonblist.cpp
index 7b6ef4510b9a064c745bb6aee750fc6ad786cad3..b2b88fbedc6919e8b1cbfe14f17998cf6a29a92c 100644
(file)
--- a/
ribbon/ribbonblist.cpp
+++ b/
ribbon/ribbonblist.cpp
@@
-90,6
+90,7
@@
void RibbonBlist::on_buddy_icon_change(PurpleBuddy* buddy)
purple_buddy_get_account(buddy),
purple_buddy_get_name(buddy)
);
+ if (!bicon) return;
QString icon_abspath = QString::fromUtf8(purple_buddy_icon_get_full_path(bicon));
QDir state_dir(_manager->get_state_dir());
QString relative_path = state_dir.relativeFilePath(icon_abspath);