summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-10-06 02:57:15 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-10-06 02:57:15 -0400
commitabc0a7931e64cfe3db65dd85c26d0de1be1817a0 (patch)
treeb7cab278fdf07efe4e383625e29ca07a8348e733
parentad523f37c5f322f6ba93e454e31246ae3acdad33 (diff)
downloadabaddon-portaudio-abc0a7931e64cfe3db65dd85c26d0de1be1817a0.tar.gz
abaddon-portaudio-abc0a7931e64cfe3db65dd85c26d0de1be1817a0.zip
skip audit log entries with no target id
-rw-r--r--windows/guildsettings/auditlogpane.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/windows/guildsettings/auditlogpane.cpp b/windows/guildsettings/auditlogpane.cpp
index 9c7cdd0..5a6cb82 100644
--- a/windows/guildsettings/auditlogpane.cpp
+++ b/windows/guildsettings/auditlogpane.cpp
@@ -30,6 +30,8 @@ void GuildSettingsAuditLogPane::OnAuditLogFetch(const AuditLogData &data) {
auto &discord = Abaddon::Get().GetDiscordClient();
auto guild = *discord.GetGuild(GuildID);
for (const auto &entry : data.Entries) {
+ if (entry.TargetID == "") continue;
+
auto expander = Gtk::manage(new Gtk::Expander);
auto label = Gtk::manage(new Gtk::Label);
label->set_ellipsize(Pango::ELLIPSIZE_END);