[PATCH] BUG 167388 inconsistency in ~/.kde4/share/config/trashrc

"潘卫平(Peter Pan)" wppan at redflag-linux.com
Tue Sep 15 02:50:04 BST 2009


David Faure 写道:
> [Too much cross-posting, removing kde-devel from the CC list]
> 
> On Wednesday 02 September 2009, 潘卫平(Peter Pan) wrote:
> ===================================================================
>> --- trashimpl.cpp       (revision 1018673)
>> +++ trashimpl.cpp       (working copy)
>> @@ -771,6 +771,7 @@
>>  
>>  void TrashImpl::fileAdded()
>>  {
>> +    m_config.reparseConfiguration();
>>      KConfigGroup group = m_config.group( "Status" );
>>      if ( group.readEntry( "Empty", true) == true ) {
>>          group.writeEntry( "Empty", false );
> 
> This one makes sense indeed. Before reading we have to re-read from
> disk. Well, ideally only if it changed, so another fix would be to use 
> KDirWatch on ktrashrc.
>
------------------------------------------------------------------------
r1023611 | peterpan | 2009-09-15 09:38:35 +0800 (二, 2009-09-15) | 3 行

call m_config.reparseConfiguration() when adding a file.
BUG:167388


Looking forward to your code using KDirWatch on ktrashrc.

Regards
-- 
潘卫平(Peter Pan)
Red Flag Software Co., Ltd
_______________________________________________
Plasma-devel mailing list
Plasma-devel at kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


More information about the kde-core-devel mailing list