From eb6d2df23aa9cf1e2c1f31474dcf7a1148eee906 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sun, 20 May 2007 18:32:24 +0000 Subject: [PATCH] Commit of change which seems to stop the 5 second timer to bring the console screen to scroll to the bottom. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4859 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/console/console.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index 5f79e5dc10..f1bec8d873 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -410,21 +410,21 @@ void Console::display_textf(const char *fmt, ...) void Console::display_text(const QString buf) { - m_cursor->movePosition(QTextCursor::End); m_cursor->insertText(buf); + update_cursor(); } void Console::display_text(const char *buf) { - m_cursor->movePosition(QTextCursor::End); m_cursor->insertText(buf); + update_cursor(); } void Console::display_html(const QString buf) { - m_cursor->movePosition(QTextCursor::End); m_cursor->insertHtml(buf); + update_cursor(); } /* Position cursor to end of screen */ @@ -569,7 +569,6 @@ int Console::read() m_at_prompt = true; m_at_main_prompt = true; mainWin->set_status(_("At prompt waiting for input ...")); - update_cursor(); QApplication::restoreOverrideCursor(); break; case BNET_PROMPT: @@ -577,20 +576,17 @@ int Console::read() m_at_prompt = true; m_at_main_prompt = false; mainWin->set_status(_("At prompt waiting for input ...")); - update_cursor(); QApplication::restoreOverrideCursor(); break; case BNET_CMD_FAILED: if (mainWin->m_commDebug) Pmsg0(000, "CMD FAILED\n"); mainWin->set_status(_("Command failed. At prompt waiting for input ...")); - update_cursor(); QApplication::restoreOverrideCursor(); break; /* We should not get this one */ case BNET_EOD: if (mainWin->m_commDebug) Pmsg0(000, "EOD\n"); mainWin->set_status_ready(); - update_cursor(); QApplication::restoreOverrideCursor(); if (!m_api_set) { break; -- 2.39.5