diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-18 20:52:17 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-18 20:52:17 +0200 |
commit | c92ad7dcf86f2e5e71d71a68e24e79fbdeceb56d (patch) | |
tree | 7be301a5123e216a41646f9639ec887609497a87 /logic/Mod.h | |
parent | 253067c782955380bbf66ac0475dc954375b1ff4 (diff) | |
download | MultiMC-c92ad7dcf86f2e5e71d71a68e24e79fbdeceb56d.tar MultiMC-c92ad7dcf86f2e5e71d71a68e24e79fbdeceb56d.tar.gz MultiMC-c92ad7dcf86f2e5e71d71a68e24e79fbdeceb56d.tar.lz MultiMC-c92ad7dcf86f2e5e71d71a68e24e79fbdeceb56d.tar.xz MultiMC-c92ad7dcf86f2e5e71d71a68e24e79fbdeceb56d.zip |
Drag and Drop, mod management.
Diffstat (limited to 'logic/Mod.h')
-rw-r--r-- | logic/Mod.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/logic/Mod.h b/logic/Mod.h index f14818d1..ea0827bd 100644 --- a/logic/Mod.h +++ b/logic/Mod.h @@ -47,12 +47,15 @@ public: // change the mod's filesystem path (used by mod lists for *MAGIC* purposes) void repath(const QFileInfo &file); - + // WEAK compare operator - used for replacing mods bool operator ==(const Mod &other) const { return filename() == other.filename(); } - + bool strongCompare(const Mod &other) const + { + return filename() == other.filename() && id() == other.id() && version() == other.version() && type() == other.type(); + } protected: //FIXME: what do do with those? HMM... |