diff options
author | Ken Moore <ken@pcbsd.org> | 2016-09-21 14:20:15 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-09-21 14:20:15 -0400 |
commit | de4b5c26801cc19956d0eb1e1d109b7024c8e368 (patch) | |
tree | 3dbaf5d994c308d602fd4711571da2086caee906 /src-qt5/core/libLumina | |
parent | Have the internal QHash run "squeeze" after every update run - just to ensure... (diff) | |
download | lumina-de4b5c26801cc19956d0eb1e1d109b7024c8e368.tar.gz lumina-de4b5c26801cc19956d0eb1e1d109b7024c8e368.tar.bz2 lumina-de4b5c26801cc19956d0eb1e1d109b7024c8e368.zip |
Add an "==" operator to the XDGDesktop class. Found a note in the QHash docs that any class type need this defined.
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r-- | src-qt5/core/libLumina/LuminaXDG.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.h b/src-qt5/core/libLumina/LuminaXDG.h index 0397ce71..1720ebc5 100644 --- a/src-qt5/core/libLumina/LuminaXDG.h +++ b/src-qt5/core/libLumina/LuminaXDG.h @@ -68,6 +68,10 @@ public: //Constructor/destructor XDGDesktop(){} ~XDGDesktop(){} + + friend bool operator==(const XDGDesktop lhs, const XDGDesktop rhs){ + return lhs.filePath == rhs.filePath && lhs.lastRead == rhs.lastRead; + } }; // ======================== |