diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-30 23:30:55 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-30 23:30:55 +0200 |
commit | ac8ff8806137d3f6db35afe54b0ef777c40278ef (patch) | |
tree | 9f74debbd43705b9c52b80f9bf6a95928a9599d3 /logic | |
parent | 477a1a88c6b7f5e5a78a2bbc4a6fe7781b2a0525 (diff) | |
download | MultiMC-ac8ff8806137d3f6db35afe54b0ef777c40278ef.tar MultiMC-ac8ff8806137d3f6db35afe54b0ef777c40278ef.tar.gz MultiMC-ac8ff8806137d3f6db35afe54b0ef777c40278ef.tar.lz MultiMC-ac8ff8806137d3f6db35afe54b0ef777c40278ef.tar.xz MultiMC-ac8ff8806137d3f6db35afe54b0ef777c40278ef.zip |
GH-729 use mod mmc_id as name when name is empty
Diffstat (limited to 'logic')
-rw-r--r-- | logic/minecraft/Mod.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/minecraft/Mod.h b/logic/minecraft/Mod.h index 5b815bc1..19f4c740 100644 --- a/logic/minecraft/Mod.h +++ b/logic/minecraft/Mod.h @@ -57,6 +57,10 @@ public: } QString name() const { + if(m_name.trimmed().isEmpty()) + { + return m_mmc_id; + } return m_name; } |