summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tdeioslave/trash/trashimpl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tdeioslave/trash/trashimpl.cpp b/tdeioslave/trash/trashimpl.cpp
index c96d15d3a..b210f1385 100644
--- a/tdeioslave/trash/trashimpl.cpp
+++ b/tdeioslave/trash/trashimpl.cpp
@@ -683,10 +683,8 @@ bool TrashImpl::isEmpty() const
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.