Summary: | Empty trash twice, trash stop work. | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Cjacker <cjacker> |
Component: | trash | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | grave | CC: | zhaixiang |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Cjacker
2015-12-22 13:42:54 UTC
This issue also affect 'ktrash5 --empty', 'ktrash5 --empty' will hang every time. The root cause is in 'slotFinished' of 'emptytrashjob', here is a fix: diff -Nur kio-5.16.0/src/core/emptytrashjob.cpp kio-5.16.0new/src/core/emptytrashjob.cpp --- kio-5.16.0/src/core/emptytrashjob.cpp 2015-11-08 20:26:59.000000000 +0800 +++ kio-5.16.0new/src/core/emptytrashjob.cpp 2015-12-22 22:13:06.806386994 +0800 @@ -55,6 +55,10 @@ { //KNotification::event("Trash: emptied", QString(), QPixmap(), 0, KNotification::DefaultEvent); org::kde::KDirNotify::emitFilesAdded(QUrl(QStringLiteral("trash:/"))); + Q_D(EmptyTrashJob); + //Return slave to the scheduler + SimpleJob::slotFinished(); + } KIO::EmptyTrashJob *KIO::emptyTrash() *** Bug 357023 has been marked as a duplicate of this bug. *** Patch already submitted with help of Leslie. https://git.reviewboard.kde.org/r/126473/ mark as fixed. |