diff --git a/logviewer/log-viewer.cpp b/logviewer/log-viewer.cpp --- a/logviewer/log-viewer.cpp +++ b/logviewer/log-viewer.cpp @@ -118,6 +118,13 @@ connect(ui->globalSearch, &QLineEdit::textChanged, [this](const QString &text) { if (text.isEmpty()) { slotClearGlobalSearch(); } }); connect(ui->entityList, SIGNAL(customContextMenuRequested(QPoint)), SLOT(slotShowEntityListContextMenu(QPoint))); connect(ui->entityList, SIGNAL(noSuchContact()), SLOT(slotNoLogsForContact())); + + const int indexOfMessageView = ui->splitter->indexOf(ui->messageView); + if (indexOfMessageView < 0) { + qCCritical(KTP_LOGVIEWER) << "Unable to adjust MessageView size"; + } else { + ui->splitter->setStretchFactor(indexOfMessageView, 1); + } } LogViewer::~LogViewer()