File kdebase-trinity-fix-trash-status-update.patch of Package kdebase3
diff -Naru kdebase-3.5.10_orig/kioslave/trash/trashimpl.cpp kdebase-3.5.10/kioslave/trash/trashimpl.cpp
--- kdebase-3.5.10_orig/kioslave/trash/trashimpl.cpp 2007-05-14 07:55:41.000000000 +0000
+++ kdebase-3.5.10/kioslave/trash/trashimpl.cpp 2018-04-25 03:54:12.108835830 +0000
@@ -683,10 +683,8 @@
void TrashImpl::fileAdded()
{
m_config.setGroup( "Status" );
- if ( m_config.readBoolEntry( "Empty", true ) == true ) {
- m_config.writeEntry( "Empty", false );
- m_config.sync();
- }
+ m_config.writeEntry( "Empty", false );
+ m_config.sync();
// The apps showing the trash (e.g. kdesktop) will be notified
// of this change when KDirNotify::FilesAdded("trash:/") is emitted,
// which will be done by the job soon after this.