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>
(cherry picked from commit f88a8e57fe)
pull/182/head
Michele Calgaro 6 years ago
parent 42b2c4e996
commit ac79ba373f

@ -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.

Loading…
Cancel
Save