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
This commit is contained in:
Elvis Angelaccio 2016-10-04 17:30:51 +02:00
parent 3775ef19ea
commit 0e5e43aa9d
3 changed files with 12 additions and 3 deletions

View file

@ -526,7 +526,7 @@ void DolphinMainWindow::toggleSplitView()
void DolphinMainWindow::reloadView()
{
clearStatusBar();
m_activeViewContainer->view()->reload();
m_activeViewContainer->reload();
}
void DolphinMainWindow::stopLoading()

View file

@ -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()) {

View file

@ -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