From e03475f593a2ddce1b65f4b33ceb0060cb6feadb Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 16 Feb 2013 19:11:54 +0100 Subject: [PATCH] Fix text input in bat. Fixe bug #1965 --- bacula/src/qt-console/bcomm/dircomm.cpp | 3 +- bacula/src/qt-console/select/textinput.ui | 72 ++++++++++++++++++----- 2 files changed, 59 insertions(+), 16 deletions(-) diff --git a/bacula/src/qt-console/bcomm/dircomm.cpp b/bacula/src/qt-console/bcomm/dircomm.cpp index 94ddd6d105..b2261f9508 100644 --- a/bacula/src/qt-console/bcomm/dircomm.cpp +++ b/bacula/src/qt-console/bcomm/dircomm.cpp @@ -371,7 +371,8 @@ int DirComm::read() case BNET_TEXT_INPUT: if (mainWin->m_commDebug) Pmsg4(000, "conn %i TEXT_INPUT at_prompt=%d m_in_select=%d notify=%d\n", m_conn, m_at_prompt, m_in_select, is_notify_enabled()); - if (!m_in_select && is_notify_enabled()) { + //if (!m_in_select && is_notify_enabled()) { + if (!m_in_select) { mainWin->waitExit(); new textInputDialog(m_console, m_conn); } else { diff --git a/bacula/src/qt-console/select/textinput.ui b/bacula/src/qt-console/select/textinput.ui index a72fc8a201..4991b8f2cd 100644 --- a/bacula/src/qt-console/select/textinput.ui +++ b/bacula/src/qt-console/select/textinput.ui @@ -10,47 +10,89 @@ 0 0 430 - 132 + 96 + + Qt::StrongFocus + - Selection dialog + Text input dialog - - - - + + + + + 0 + 0 + + + + + 50 + 0 + + + + + 100 + 16777215 + + + + Qt::TabFocus - - + + + + + 0 + 0 + + - TextLabel + Message - - - - + + + 5 + Qt::Horizontal + + QSizePolicy::Expanding + - 40 - 20 + 26 + 9 + + + 0 + 0 + + + + + 16777215 + 38 + + Qt::Horizontal -- 2.39.5