mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
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:
parent
3775ef19ea
commit
0e5e43aa9d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue