diff options
author | robotbrainify <robotbrainify@gmail.com> | 2013-10-12 09:59:18 -0400 |
---|---|---|
committer | robotbrainify <robotbrainify@gmail.com> | 2013-10-12 09:59:18 -0400 |
commit | 4c64c3c612149cd392cef8b704fc30682f8127e6 (patch) | |
tree | c8cf0183c70299911950378ea07b8f00f049b9c2 /gui | |
parent | aef28fd3a54884c82d3eb196b79de95c2583df64 (diff) | |
download | MultiMC-4c64c3c612149cd392cef8b704fc30682f8127e6.tar MultiMC-4c64c3c612149cd392cef8b704fc30682f8127e6.tar.gz MultiMC-4c64c3c612149cd392cef8b704fc30682f8127e6.tar.lz MultiMC-4c64c3c612149cd392cef8b704fc30682f8127e6.tar.xz MultiMC-4c64c3c612149cd392cef8b704fc30682f8127e6.zip |
cleanup
Diffstat (limited to 'gui')
-rw-r--r-- | gui/MCModInfoFrame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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("<html><body>" + finaltext.left(287) + "<a href=\"#mod_desc\">...</a></body></html>"); QObject::connect(ui->label_ModDescription, &QLabel::linkActivated, this, &MCModInfoFrame::modDescEllipsisHandler); } |