- Fixed the inconsitency bug lately introduced. Adding networks is now
[quassel.git] / src / common / types.h
index 64bfbbc..551bd13 100644 (file)
@@ -32,6 +32,7 @@ class SignedId {
   public:
     inline SignedId(int _id = 0) { id = _id; }
     inline qint32 toInt() const { return id; }
+    inline bool isValid() const { return id > 0; }
 
     inline bool operator==(const SignedId &other) const { return id == other.id; }
     inline bool operator!=(const SignedId &other) const { return id != other.id; }