mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
use DolphinMainWindow::showErrorMessage instead of DolphinMainWindow::slotPanelErrorMessage because the implementation is exactly the same
This commit is contained in:
parent
9cdbd1eb09
commit
7e03c99ebb
|
@ -899,11 +899,6 @@ void DolphinMainWindow::slotControlButtonDeleted()
|
|||
m_updateToolBarTimer->start();
|
||||
}
|
||||
|
||||
void DolphinMainWindow::slotPanelErrorMessage(const QString& error)
|
||||
{
|
||||
activeViewContainer()->showMessage(error, DolphinViewContainer::Error);
|
||||
}
|
||||
|
||||
void DolphinMainWindow::slotPlaceActivated(const QUrl& url)
|
||||
{
|
||||
DolphinViewContainer* view = activeViewContainer();
|
||||
|
@ -1212,7 +1207,7 @@ void DolphinMainWindow::setupDockWidgets()
|
|||
connect(foldersPanel, &FoldersPanel::folderMiddleClicked,
|
||||
this, &DolphinMainWindow::openNewTab);
|
||||
connect(foldersPanel, &FoldersPanel::errorMessage,
|
||||
this, &DolphinMainWindow::slotPanelErrorMessage);
|
||||
this, &DolphinMainWindow::showErrorMessage);
|
||||
|
||||
// Setup "Terminal"
|
||||
#ifndef Q_OS_WIN
|
||||
|
@ -1264,7 +1259,7 @@ void DolphinMainWindow::setupDockWidgets()
|
|||
connect(placesPanel, SIGNAL(placeMiddleClicked(QUrl)),
|
||||
this, SLOT(openNewTab(QUrl)));
|
||||
connect(placesPanel, &PlacesPanel::errorMessage,
|
||||
this, &DolphinMainWindow::slotPanelErrorMessage);
|
||||
this, &DolphinMainWindow::showErrorMessage);
|
||||
connect(this, &DolphinMainWindow::urlChanged,
|
||||
placesPanel, &PlacesPanel::setUrl);
|
||||
connect(placesDock, &DolphinDockWidget::visibilityChanged,
|
||||
|
|
|
@ -395,12 +395,6 @@ private slots:
|
|||
void updateToolBar();
|
||||
void slotControlButtonDeleted();
|
||||
|
||||
/**
|
||||
* Is called if a panel emits an error-message and shows
|
||||
* the error-message in the active view-container.
|
||||
*/
|
||||
void slotPanelErrorMessage(const QString& error);
|
||||
|
||||
/**
|
||||
* Is called if the user clicked an item in the Places Panel.
|
||||
* Reloads the view if \a url is the current URL already, and changes the
|
||||
|
|
Loading…
Reference in a new issue