From 328c9b166e9d623cd1b80c7ae064baf6172da58f Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Mon, 8 Jan 2024 09:01:41 +0100 Subject: Show status list item tooltip regardless of NDEBUG This shows the tooltip even when making a release build. --- src/list_item.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/list_item.cpp b/src/list_item.cpp index 30f2ab0..18379ea 100644 --- a/src/list_item.cpp +++ b/src/list_item.cpp @@ -29,7 +29,6 @@ StatusListItem::StatusListItem(const QString &text, StatusType status_type, bool setText(text); setIcon(choose_icon(status_type)); parent->addItem(this); -#ifndef NDEBUG QString tool_tip; switch (status_type) { case PUBLIC: tool_tip = QObject::tr("Public"); break; @@ -40,7 +39,6 @@ StatusListItem::StatusListItem(const QString &text, StatusType status_type, bool case REBLOG: tool_tip = QObject::tr("Reblog"); break; } setToolTip(tool_tip); -#endif } int StatusListItem::get_status_index() { -- cgit v1.2.3-54-g00ecf