aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/list/ListWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/list/ListWindow.cpp')
-rw-r--r--src/modules/list/ListWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/list/ListWindow.cpp b/src/modules/list/ListWindow.cpp
index 11366c444..773f1bf22 100644
--- a/src/modules/list/ListWindow.cpp
+++ b/src/modules/list/ListWindow.cpp
@@ -133,7 +133,9 @@ QSize ChannelTreeWidgetItemDelegate::sizeHint( const QStyleOptionViewItem &sovIt
case 2:
default:
//topic
- return QSize(fm.width(KviMircCntrl::stripControlBytes(item->itemData()->m_szTopic)), iHeight);
+ if(item->itemData()->m_szStrippedTopic.isEmpty())
+ item->itemData()->m_szStrippedTopic = KviMircCntrl::stripControlBytes(item->itemData()->m_szTopic);
+ return QSize(fm.width(item->itemData()->m_szStrippedTopic), iHeight);
break;
}
//make gcc happy