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.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/list_item.h') diff --git a/src/list_item.h b/src/list_item.h index ce5b6b2..866a98f 100644 --- a/src/list_item.h +++ b/src/list_item.h @@ -9,11 +9,11 @@ public: ArchiveListItemType = QListWidgetItem::UserType }; - ListItem(const QString &text, StatusType status_type, QListWidget *parent = nullptr, int index = 0); + ListItem(const QString &text, StatusType status_type, bool has_attachement, QListWidget *parent = nullptr, int index = 0); int get_status_index(); private: int status_index; StatusType status_type; - bool has_attachement; + bool has_attachement = false; }; -- cgit v1.2.3-54-g00ecf