From a962b2d93227557c68a719b2401f8d6bb3969899 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Thu, 5 Jan 2023 15:26:28 -0500 Subject: Allow only listing statuses which have attachments --- src/list_item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/list_item.cpp') diff --git a/src/list_item.cpp b/src/list_item.cpp index b84f147..7ecbe57 100644 --- a/src/list_item.cpp +++ b/src/list_item.cpp @@ -12,8 +12,8 @@ QIcon* choose_icon(StatusType status_type) { } } -ListItem::ListItem(const QString &text, StatusType status_type, QListWidget *parent, int index) : - status_index(index) +ListItem::ListItem(const QString &text, StatusType status_type, bool has_attachement, QListWidget *parent, int index) : + status_index(index), has_attachement(has_attachement) { setText(text); setIcon(*choose_icon(status_type)); -- cgit v1.2.3-54-g00ecf