forked from OpenGamers/abaddon
skip audit log entries with no target id
This commit is contained in:
@@ -30,6 +30,8 @@ void GuildSettingsAuditLogPane::OnAuditLogFetch(const AuditLogData &data) {
|
|||||||
auto &discord = Abaddon::Get().GetDiscordClient();
|
auto &discord = Abaddon::Get().GetDiscordClient();
|
||||||
auto guild = *discord.GetGuild(GuildID);
|
auto guild = *discord.GetGuild(GuildID);
|
||||||
for (const auto &entry : data.Entries) {
|
for (const auto &entry : data.Entries) {
|
||||||
|
if (entry.TargetID == "") continue;
|
||||||
|
|
||||||
auto expander = Gtk::manage(new Gtk::Expander);
|
auto expander = Gtk::manage(new Gtk::Expander);
|
||||||
auto label = Gtk::manage(new Gtk::Label);
|
auto label = Gtk::manage(new Gtk::Label);
|
||||||
label->set_ellipsize(Pango::ELLIPSIZE_END);
|
label->set_ellipsize(Pango::ELLIPSIZE_END);
|
||||||
|
|||||||
Reference in New Issue
Block a user