X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a0c0b43b97017280f6290fc720f41307a5b85d22..38c34eeca:/src/trash/dolphintrash.cpp diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 236f9817d..e1530bfae 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -7,11 +7,11 @@ #include "dolphintrash.h" -#include -#include #include #include #include +#include +#include #include #if KIO_VERSION >= QT_VERSION_CHECK(5, 100, 0) @@ -72,10 +72,10 @@ void Trash::empty(QWidget *window) uiDelegate.setWindow(window); bool confirmed = uiDelegate.askDeleteConfirmation(QList(), KIO::JobUiDelegate::EmptyTrash, KIO::JobUiDelegate::DefaultConfirmation); if (confirmed) { - KIO::Job* job = KIO::emptyTrash(); + KIO::Job *job = KIO::emptyTrash(); KJobWidgets::setWindow(job, window); job->uiDelegate()->setAutoErrorHandlingEnabled(true); - QObject::connect(emptyJob, &KIO::Job::result, notifyEmptied); + QObject::connect(job, &KIO::Job::result, notifyEmptied); } #endif } @@ -85,4 +85,3 @@ bool Trash::isEmpty() KConfig trashConfig(QStringLiteral("trashrc"), KConfig::SimpleConfig); return (trashConfig.group("Status").readEntry("Empty", true)); } -