diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/MCModInfoFrame.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/MCModInfoFrame.cpp b/gui/MCModInfoFrame.cpp index a0458cbc..51651e33 100644 --- a/gui/MCModInfoFrame.cpp +++ b/gui/MCModInfoFrame.cpp @@ -24,8 +24,12 @@ void MCModInfoFrame::updateWithMod(Mod &m) } QString text = ""; - if(m.homeurl().isEmpty()) text = m.name(); - else text = "<a href=\"" + m.homeurl() + "\">" + m.name() + "</a>"; + QString name = ""; + if(m.name().isEmpty()) name = m.id(); + else name = m.name(); + + if(m.homeurl().isEmpty()) text = name; + else text = "<a href=\"" + m.homeurl() + "\">" + name + "</a>"; if(!m.authors().isEmpty()) text += " by " + m.authors(); setModText(text); |