mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-12-26 18:14:22 +00:00
Fall back to mod ID if name is missing for some reason
This commit is contained in:
parent
14b47057fd
commit
595943244c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user