Commit f45e9e69 authored by Ragnar Thomsen's avatar Ragnar Thomsen
Browse files

Fix KMessageWidget not disappearing after adding files

When creating a new archive a KMessageWidget is shown with the text:
"The archive <name> will be created as soon as you add a file."
This widget should be hidden as soon as the user adds a file.

This is already fixed in Applications/16.08 branch and also was
previously in master (commit 50f0cbb4), but somehow got reverted
in the merge in commit 7eb3304d.
parent 2642a1eb
......@@ -1696,11 +1696,11 @@ void Part::slotShowContextMenu()
void Part::displayMsgWidget(KMessageWidget::MessageType type, const QString& msg)
{
KMessageWidget *msgWidget = new KMessageWidget();
msgWidget->setText(msg);
msgWidget->setMessageType(type);
m_vlayout->insertWidget(0, msgWidget);
msgWidget->animatedShow();
// The widget could be already visible, so hide it.
m_messageWidget->hide();
m_messageWidget->setText(msg);
m_messageWidget->setMessageType(type);
m_messageWidget->animatedShow();
}
} // namespace Ark
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment