From 4c64c3c612149cd392cef8b704fc30682f8127e6 Mon Sep 17 00:00:00 2001 From: robotbrainify Date: Sat, 12 Oct 2013 09:59:18 -0400 Subject: cleanup --- gui/MCModInfoFrame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui') diff --git a/gui/MCModInfoFrame.cpp b/gui/MCModInfoFrame.cpp index 5b65d169..a31502d3 100644 --- a/gui/MCModInfoFrame.cpp +++ b/gui/MCModInfoFrame.cpp @@ -41,8 +41,7 @@ void MCModInfoFrame::updateWithMod(Mod &m) setModDescription(tr("No description provided in mcmod.info")); } else - { - desc = m.description(); + { setModDescription(m.description()); } } @@ -92,6 +91,7 @@ void MCModInfoFrame::setModDescription(QString text) { ui->label_ModDescription->setOpenExternalLinks(false); ui->label_ModDescription->setTextFormat(Qt::TextFormat::RichText); + desc = text; labeltext.append("" + finaltext.left(287) + "..."); QObject::connect(ui->label_ModDescription, &QLabel::linkActivated, this, &MCModInfoFrame::modDescEllipsisHandler); } -- cgit v1.2.3