summaryrefslogtreecommitdiff
path: root/src/components/channellist/classic/guildlistfolderitem.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2024-02-01 21:08:17 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2024-02-01 21:08:17 -0500
commitdbfdd01b13af7394c0b6117e878728d0eac097c2 (patch)
tree177627c33e843001ab2fc24dc137e4aa4ab76d5c /src/components/channellist/classic/guildlistfolderitem.cpp
parent43b05527e7729bb8089d0079d122216f26a7eed3 (diff)
downloadabaddon-portaudio-dbfdd01b13af7394c0b6117e878728d0eac097c2.tar.gz
abaddon-portaudio-dbfdd01b13af7394c0b6117e878728d0eac097c2.zip
add missing guild.HasIcon checks
Diffstat (limited to 'src/components/channellist/classic/guildlistfolderitem.cpp')
-rw-r--r--src/components/channellist/classic/guildlistfolderitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/channellist/classic/guildlistfolderitem.cpp b/src/components/channellist/classic/guildlistfolderitem.cpp
index fea735c..2c8bc3b 100644
--- a/src/components/channellist/classic/guildlistfolderitem.cpp
+++ b/src/components/channellist/classic/guildlistfolderitem.cpp
@@ -24,7 +24,7 @@ void GuildListFolderButton::SetGuilds(const std::vector<Snowflake> &guild_ids) {
if (i < guild_ids.size()) {
widget.show();
- if (const auto guild = Abaddon::Get().GetDiscordClient().GetGuild(guild_ids[i]); guild.has_value()) {
+ if (const auto guild = Abaddon::Get().GetDiscordClient().GetGuild(guild_ids[i]); guild.has_value() && guild->HasIcon()) {
const auto cb = [&widget](const Glib::RefPtr<Gdk::Pixbuf> &pb) {
widget.property_pixbuf() = pb->scale_simple(FolderGridImageSize, FolderGridImageSize, Gdk::INTERP_BILINEAR);
};