Review Request: Keeps the selection after showing/hiding hidden files.

Matthias Fuchs mat69 at gmx.net
Wed Jun 1 23:56:37 BST 2011



> On June 1, 2011, 10:48 p.m., Peter Penz wrote:
> > Thanks for the patch. I just had a look and if I don't miss anything it should
> > be sufficient to just add the line:
> >   m_selectedItems = selectedItems();
> > to DolphinView::setShowHiddenFiles().
> > 
> > I'm not really happy with how the selections are remembered in DolphinView in
> > general: We have m_selectedItems to remember the selection when e.g. changing
> > views and there is m_newFileNames for the usecase where the KFileItems are not
> > available yet and only the new names are known.
> > 
> > I'm currently working on a (let's say) "new view-engine" in Dolphin for 4.8
> > that should allow us to get rid of at least m_selectedItems but for 4.7 it
> > would be great if we could get in this fix.
> > 
> > Would it be possible that you check whether 'm_selectedItems =
> > selectedItems();' is sufficient? I'm quite sure this should work but probably
> > I'm missing something... Thanks :-)

Indeed that works too and is a lot (!) nicer. :)

Yeah the m_newFileNames is not really nice and can't handle multiple corner cases like kio operations that were paused in between e.g. because of existing files etc.


- Matthias


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101487/#review3621
-----------------------------------------------------------


On June 1, 2011, 9:58 p.m., Matthias Fuchs wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101487/
> -----------------------------------------------------------
> 
> (Updated June 1, 2011, 9:58 p.m.)
> 
> 
> Review request for KDE Base Apps, Peter Penz and Frank Reininghaus.
> 
> 
> Summary
> -------
> 
> Still only files that are shown will be selected, thus selecting hidden files and then hiding hidden files will deselect those.
> 
> 
> This addresses bug 177215.
>     http://bugs.kde.org/show_bug.cgi?id=177215
> 
> 
> Diffs
> -----
> 
>   dolphin/src/views/dolphinview.cpp 4bc901b 
> 
> Diff: http://git.reviewboard.kde.org/r/101487/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Matthias
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110601/4ea230c4/attachment.htm>


More information about the kde-core-devel mailing list