summaryrefslogtreecommitdiffstats
path: root/tdeioslave/trash/trashimpl.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-04-19 23:52:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-04-19 23:52:23 +0900
commitf88a8e57feaca667ce6ebbe6f428f95076b329c8 (patch)
treec8bd255458e0e21f1fbd179078b702787b4af348 /tdeioslave/trash/trashimpl.cpp
parent058bd5c36200f1b31cf06dfafc49fb08af38b1f5 (diff)
downloadtdebase-f88a8e57feaca667ce6ebbe6f428f95076b329c8.tar.gz
tdebase-f88a8e57feaca667ce6ebbe6f428f95076b329c8.zip
Fixed trash status update problem described in bug 2729.
Special thanks to Emanoil for his initial investigation on this bug. Signed-off-by: Emanoil Kotsev <deloptes@yahoo.com> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeioslave/trash/trashimpl.cpp')
-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 6de7edd2a..c7f9de72d 100644
--- a/tdeioslave/trash/trashimpl.cpp
+++ b/tdeioslave/trash/trashimpl.cpp
@@ -690,10 +690,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.