Switch some dirty hacking to using real infrastructure. A Chatline now contains three...
[quassel.git] / src / common / bufferinfo.h
index 6fb3de4..4eec164 100644 (file)
@@ -38,7 +38,8 @@ public:
   
   BufferInfo();
   BufferInfo(BufferId id, NetworkId networkid, Type type, uint gid = 0, QString buf = QString());
-  
+
+  inline bool isValid() const { return _bufferId != 0; }
   inline BufferId bufferId() const { return _bufferId; }
   inline NetworkId networkId() const { return _netid; }
   inline Type type() const { return _type; }