In the TopicWidget the list of Clickables is initialized with text
stripped of formatting, so when looking up their positions again, the
formatting should be stripped as well.
Fixes #1115
#include "iconloader.h"
#include "networkmodel.h"
#include "uisettings.h"
+#include "graphicalui.h"
+#include "uistyle.h"
TopicWidget::TopicWidget(QWidget *parent)
: AbstractItemView(parent)
void TopicWidget::clickableActivated(const Clickable &click)
{
NetworkId networkId = selectionModel()->currentIndex().data(NetworkModel::NetworkIdRole).value<NetworkId>();
- click.activate(networkId, _topic);
+ UiStyle::StyledString sstr = GraphicalUi::uiStyle()->styleString(GraphicalUi::uiStyle()->mircToInternal(_topic), UiStyle::PlainMsg);
+ click.activate(networkId, sstr.plainText);
}