Hide search widget when loading msg.
This commit is contained in:
parent
20c7d066a9
commit
9d8bbe0410
2 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue