┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2026-04-26 13:05:57 +0200
committerMéven Car <[email protected]>2026-04-26 11:05:57 +0000
commita5c36c615a9388301330c9a32898d4f4b57eede7 (patch)
tree1299454057ff3db6d518a6e99fbef44d32d9a7d1 /src/dolphinmainwindow.cpp
parent2dce7352c1edfb13c90a8a3b858d113e3a9300b2 (diff)
Remove code for notifying about successful job completion
Because of a bug these messages haven't reached users in years, and it seems it is better this way. Remove the dead code. Preparation for https://invent.kde.org/system/dolphin/-/merge_requests/1254
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 615e52480..dd511ccd9 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -33,7 +33,6 @@
#endif
#include "settings/dolphinsettingsdialog.h"
#include "statusbar/diskspaceusagemenu.h"
-#include "statusbar/dolphinstatusbar.h"
#include "views/dolphinnewfilemenuobserver.h"
#include "views/dolphinremoteencoding.h"
#include "views/dolphinviewactionhandler.h"
@@ -164,8 +163,6 @@ DolphinMainWindow::DolphinMainWindow()
connect(undoManager, &KIO::FileUndoManager::redoAvailable, this, &DolphinMainWindow::slotRedoAvailable);
connect(undoManager, &KIO::FileUndoManager::redoTextChanged, this, &DolphinMainWindow::slotRedoTextChanged);
#endif
- connect(undoManager, &KIO::FileUndoManager::jobRecordingStarted, this, &DolphinMainWindow::clearStatusBar);
- connect(undoManager, &KIO::FileUndoManager::jobRecordingFinished, this, &DolphinMainWindow::showCommand);
const bool firstRun = (GeneralSettings::version() < 200);
if (firstRun) {
@@ -187,7 +184,6 @@ DolphinMainWindow::DolphinMainWindow()
setupActions();
m_actionHandler = new DolphinViewActionHandler(actionCollection(), m_actionTextHelper, this);
- connect(m_actionHandler, &DolphinViewActionHandler::actionBeingHandled, this, &DolphinMainWindow::clearStatusBar);
connect(m_actionHandler, &DolphinViewActionHandler::createDirectoryTriggered, this, &DolphinMainWindow::createDirectory);
connect(m_actionHandler, &DolphinViewActionHandler::createFileTriggered, this, &DolphinMainWindow::createFile);
connect(m_actionHandler, &DolphinViewActionHandler::selectionModeChangeTriggered, this, &DolphinMainWindow::slotSetSelectionMode);
@@ -359,35 +355,6 @@ bool DolphinMainWindow::isActiveWindow()
return window()->isActiveWindow();
}
-void DolphinMainWindow::showCommand(CommandType command)
-{
- DolphinStatusBar *statusBar = m_activeViewContainer->statusBar();
- switch (command) {
- case KIO::FileUndoManager::Copy:
- statusBar->setText(i18nc("@info:status", "Successfully copied."));
- break;
- case KIO::FileUndoManager::Move:
- statusBar->setText(i18nc("@info:status", "Successfully moved."));
- break;
- case KIO::FileUndoManager::Link:
- statusBar->setText(i18nc("@info:status", "Successfully linked."));
- break;
- case KIO::FileUndoManager::Trash:
- statusBar->setText(i18nc("@info:status", "Successfully moved to trash."));
- break;
- case KIO::FileUndoManager::Rename:
- statusBar->setText(i18nc("@info:status", "Successfully renamed."));
- break;
-
- case KIO::FileUndoManager::Mkdir:
- statusBar->setText(i18nc("@info:status", "Created folder."));
- break;
-
- default:
- break;
- }
-}
-
void DolphinMainWindow::pasteIntoFolder()
{
m_activeViewContainer->view()->pasteIntoFolder();
@@ -892,7 +859,6 @@ void DolphinMainWindow::slotUndoTextChanged(const QString &text)
void DolphinMainWindow::undo()
{
- clearStatusBar();
KIO::FileUndoManager::self()->uiInterface()->setParentWidget(this);
KIO::FileUndoManager::self()->undo();
}
@@ -916,7 +882,6 @@ void DolphinMainWindow::slotRedoTextChanged(const QString &text)
void DolphinMainWindow::redo()
{
- clearStatusBar();
KIO::FileUndoManager::self()->uiInterface()->setParentWidget(this);
KIO::FileUndoManager::self()->redo();
}
@@ -1082,8 +1047,6 @@ void DolphinMainWindow::slotSetSelectionMode(bool enabled, SelectionMode::Bottom
void DolphinMainWindow::selectAll()
{
- clearStatusBar();
-
// if the URL navigator is editable and focused, select the whole
// URL instead of all items of the view
@@ -1099,7 +1062,6 @@ void DolphinMainWindow::selectAll()
void DolphinMainWindow::invertSelection()
{
- clearStatusBar();
m_activeViewContainer->view()->invertSelection();
}
@@ -1171,9 +1133,7 @@ void DolphinMainWindow::moveToInactiveSplitView()
void DolphinMainWindow::reloadView()
{
- clearStatusBar();
m_activeViewContainer->reload();
- m_activeViewContainer->statusBar()->updateSpaceInfo();
Q_EMIT urlRefreshed(m_activeViewContainer->url());
}
@@ -1216,8 +1176,6 @@ void DolphinMainWindow::toggleFilterBar()
void DolphinMainWindow::toggleEditLocation()
{
- clearStatusBar();
-
QAction *action = actionCollection()->action(QStringLiteral("editable_location"));
KUrlNavigator *urlNavigator = m_activeViewContainer->urlNavigator();
urlNavigator->setUrlEditable(action->isChecked());
@@ -2799,11 +2757,6 @@ void DolphinMainWindow::refreshViews()
Q_EMIT settingsChanged();
}
-void DolphinMainWindow::clearStatusBar()
-{
- m_activeViewContainer->statusBar()->resetToDefaultText();
-}
-
void DolphinMainWindow::connectViewSignals(DolphinViewContainer *container)
{
connect(container, &DolphinViewContainer::showFilterBarChanged, this, &DolphinMainWindow::updateFilterBarAction);