Commit 0e5e43aa authored by Elvis Angelaccio's avatar Elvis Angelaccio

Hide message widgets only when reloading the view

Otherwise an error message might be hidden before it's even shown.

BUG: 357651
FIXED-IN: 16.08.2
REVIEW: 129061
parent 3775ef19
......@@ -526,7 +526,7 @@ void DolphinMainWindow::toggleSplitView()
void DolphinMainWindow::reloadView()
{
clearStatusBar();
m_activeViewContainer->view()->reload();
m_activeViewContainer->reload();
}
void DolphinMainWindow::stopLoading()
......
......@@ -98,8 +98,6 @@ DolphinViewContainer::DolphinViewContainer(const QUrl& url, QWidget* parent) :
m_urlNavigator, &KUrlNavigator::setLocationUrl);
connect(m_view, &DolphinView::urlChanged,
m_messageWidget, &KMessageWidget::hide);
connect(m_view, &DolphinView::directoryLoadingCompleted,
m_messageWidget, &KMessageWidget::hide);
connect(m_view, &DolphinView::writeStateChanged,
this, &DolphinViewContainer::writeStateChanged);
connect(m_view, &DolphinView::requestItemInfo,
......@@ -368,6 +366,12 @@ QString DolphinViewContainer::placesText() const
return text;
}
void DolphinViewContainer::reload()
{
view()->reload();
m_messageWidget->hide();
}
void DolphinViewContainer::setUrl(const QUrl& newUrl)
{
if (newUrl != m_urlNavigator->locationUrl()) {
......
......@@ -129,6 +129,11 @@ public:
*/
QString placesText() const;
/**
* Reload the view of this container. This will also hide messages in a messagewidget.
*/
void reload();
public slots:
/**
* Sets the current active URL, where all actions are applied. The
......
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