diff --git a/src/trash/dolphintrash.cpp b/src/trash/dolphintrash.cpp index 236f9817d3..906da2b9da 100644 --- a/src/trash/dolphintrash.cpp +++ b/src/trash/dolphintrash.cpp @@ -75,7 +75,7 @@ void Trash::empty(QWidget *window) 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 }