Review Request: Fix for stale permissions information in properties dialog
David Faure
faure at kde.org
Wed Jan 2 15:18:53 GMT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103555/#review24439
-----------------------------------------------------------
kio/kio/kdirlister.cpp
<http://git.reviewboard.kde.org/r/103555/#comment18721>
I don't understand the if(). Why should the behavior differ depending on whether we have this url currently shown (itemsInUse) or in the cache (itemsCached), compared to when we don't know about this URL?
The if() is wrongly written anyway: if it should be there, then it should be url.url(), not url.path(), since itemsInUse and itemsCached use URLs as keys. I should change that to QUrl in KF5.
And in case you remove the if, then my old comment meant: in that case, we can simplify the code to remove the if (isDir), and simply do
Q_FOREACH(const QString& dir, directoriesForCanonicalPath(url.directory())) {
handleDirDirty(dir);
}
in all cases (file or directory).
Because as you say, it's the parent that needs to be re-listed when the permissions of anything changes.
Also, this changes misses a corresponding unittest in kdirlistertest.cpp.
- David Faure
On Dec. 29, 2012, 8:31 p.m., Dawit Alemayehu wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/103555/
> -----------------------------------------------------------
>
> (Updated Dec. 29, 2012, 8:31 p.m.)
>
>
> Review request for kdelibs and David Faure.
>
>
> Description
> -------
>
> If you open a directory that contains other directories in Konqueror or Dolphin, change the permission of one of these directories from outside, say the command line, and right click on the same directory to look at the permission tab in the properties dialog, you will see that the permission change has not been updated. This patch addresses that bug.
>
>
> This addresses bug 173733.
> http://bugs.kde.org/show_bug.cgi?id=173733
>
>
> Diffs
> -----
>
> kio/kio/kdirlister.cpp ec3d622
>
> Diff: http://git.reviewboard.kde.org/r/103555/diff/
>
>
> Testing
> -------
>
> 1. In konsole, create a test directory within another test directory:
> mkdir -p test/test1
>
> 2. Open Dolphin or Konqueror and navigate to the top newly created directory, i.e. test.
>
> 3. In konsole, cd into the first test directory:
> cd test
>
> 4. In konsole, change the permission of 'test1' from konsole. For example,
> chmod go-rx
>
> 5. In the open Dolphin or Konqueror, right click on "test1", select properties and click on permission tab.
>
> 6. Validate whether or not the permission shown in the GUI matches what you get in the command line.
>
>
> Thanks,
>
> Dawit Alemayehu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20130102/0e7b4bf1/attachment.htm>
More information about the kde-core-devel
mailing list