aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-09-21 14:20:15 -0400
committerKen Moore <ken@pcbsd.org>2016-09-21 14:20:15 -0400
commitde4b5c26801cc19956d0eb1e1d109b7024c8e368 (patch)
tree3dbaf5d994c308d602fd4711571da2086caee906 /src-qt5
parentHave the internal QHash run "squeeze" after every update run - just to ensure... (diff)
downloadlumina-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')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.h4
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;
+ }
};
// ========================
bgstack15