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>
pull/2/head
Michele Calgaro 6 years ago
parent 058bd5c362
commit f88a8e57fe

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

Loading…
Cancel
Save