From: Dirk H Bartley Date: Sat, 18 Jul 2009 03:00:36 +0000 (+0000) Subject: Don't show the connection message after first connection is made X-Git-Tag: Release-3.0.2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dcef75534d50406950508731035f1f53784800a7;p=bacula%2Fbacula Don't show the connection message after first connection is made git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9052 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/bcomm/dircomm.cpp b/bacula/src/qt-console/bcomm/dircomm.cpp index 43024e7ff3..42b9bc238e 100644 --- a/bacula/src/qt-console/bcomm/dircomm.cpp +++ b/bacula/src/qt-console/bcomm/dircomm.cpp @@ -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(); diff --git a/bacula/src/qt-console/bcomm/dircomm_auth.cpp b/bacula/src/qt-console/bcomm/dircomm_auth.cpp index 92cbfb9f0c..6e9829f47f 100644 --- a/bacula/src/qt-console/bcomm/dircomm_auth.cpp +++ b/bacula/src/qt-console/bcomm/dircomm_auth.cpp @@ -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;