Hide search widget when loading msg.

This commit is contained in:
Martin Rotter 2017-10-25 11:53:56 +02:00
parent 20c7d066a9
commit 9d8bbe0410
2 changed files with 2 additions and 0 deletions

View file

@ -139,6 +139,7 @@ void MessagePreviewer::loadMessage(const Message& message, RootItem* root) {
m_root = root;
if (!m_root.isNull()) {
m_ui.m_searchWidget->hide();
m_actionSwitchImportance->setChecked(m_message.m_isImportant);
m_ui.m_txtMessage->setHtml(prepareHtmlForMessage(m_message));
updateButtons();

View file

@ -126,6 +126,7 @@ void WebBrowser::loadMessages(const QList<Message>& messages, RootItem* root) {
m_root = root;
if (!m_root.isNull()) {
m_searchWidget->hide();
m_webView->loadMessages(messages, root);
show();
}