]> git.sur5r.net Git - bacula/bacula/commitdiff
Don't show the connection message after first connection is made
authorDirk H Bartley <dbartley@schupan.com>
Sat, 18 Jul 2009 03:00:36 +0000 (03:00 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sat, 18 Jul 2009 03:00:36 +0000 (03:00 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9052 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/bcomm/dircomm.cpp
bacula/src/qt-console/bcomm/dircomm_auth.cpp

index 43024e7ff33763a025289267ee5519a6a8249633..42b9bc238ef0469a79c692c10ed4f0126a64d6ca 100644 (file)
@@ -96,7 +96,9 @@ bool DirComm::connect_dir()
    memset(jcr, 0, sizeof(JCR));
 
    mainWin->set_statusf(_("Connecting to Director %s:%d"), m_console->m_dir->address, m_console->m_dir->DIRport);
-   m_console->display_textf(_("Connecting to Director %s:%d\n\n"), m_console->m_dir->address, m_console->m_dir->DIRport);
+   if (m_conn == 0) {
+      m_console->display_textf(_("Connecting to Director %s:%d\n\n"), m_console->m_dir->address, m_console->m_dir->DIRport);
+   }
 
    /* Give GUI a chance */
    app->processEvents();
index 92cbfb9f0ca6c1bd3225524f26ee37251760a347..6e9829f47f7fa4df168d6390bcae7646884561d5 100644 (file)
@@ -160,7 +160,9 @@ bool DirComm::authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons,
          dir->host(), dir->port());
       return false;
    } else {
-      bsnprintf(errmsg, errmsg_len, "%s", dir->msg);
+      if (m_conn == 0) { 
+         bsnprintf(errmsg, errmsg_len, "%s", dir->msg);
+      }
    }
    return true;