]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/console/console.h
Oops. When I changed the contents of the field earlier, I forgot to make this change
[bacula/bacula] / bacula / src / qt-console / console / console.h
index 9c7ca74680679c3aa4d119786099f24623f27b57..a2107dac04abb5223c2c65d2e0118ceef91620d0 100644 (file)
@@ -83,6 +83,7 @@ public:
    bool authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons, 
           char *buf, int buflen);
    bool is_connected() { return m_sock != NULL; };
+   bool is_ready() { return is_connected() && m_at_prompt && m_at_main_prompt; };
    bool is_connectedGui();
    bool preventInUseConnect();
    const QFont get_font();