mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Port from KonqOperations::restoreTrashedItems to KIO::restoreFromTrash.
This commit is contained in:
parent
3e5ff13f92
commit
5a6ac1b5f7
|
@ -34,7 +34,9 @@
|
|||
#include <KFileItemListProperties>
|
||||
#include <KGlobal>
|
||||
#include <KIconLoader>
|
||||
#include <KIO/NetAccess>
|
||||
#include <KIO/RestoreJob>
|
||||
#include <KJobUiDelegate>
|
||||
#include <KJobWidgets>
|
||||
#include <KMenu>
|
||||
#include <KMenuBar>
|
||||
#include <KMessageBox>
|
||||
|
@ -180,7 +182,9 @@ void DolphinContextMenu::openTrashItemContextMenu()
|
|||
selectedUrls.append(item.url());
|
||||
}
|
||||
|
||||
KonqOperations::restoreTrashedItems(selectedUrls, m_mainWindow);
|
||||
KIO::RestoreJob *job = KIO::restoreFromTrash(selectedUrls);
|
||||
KJobWidgets::setWindow(job, m_mainWindow);
|
||||
job->uiDelegate()->setAutoErrorHandlingEnabled(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue