Summary: | wish: scroll left-pane to the selected album/date on start-up | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | S. Burmeister <sven.burmeister> |
Component: | Albums-TreeView | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | 0.9.1 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.3 | |
Sentry Crash Report: | |||
Attachments: | make selected folder visible |
Description
S. Burmeister
2007-04-29 09:09:15 UTC
Somewhere inthe middle might be better to see the context. Also: remembering the selected image (and moving to that) might be nice as well. I don't observe the problem you describe for the album view, but for the tags view and the date view. Hmm, on a re-check I also observe it for the album view. Interestingly, in principle the code is there to make it work in the first place: In folderview.cpp, in the routine void FolderView::loadViewState() one finds ensureItemVisible(item); So this should work. Is this another example of a race condition, where this call comes to early? Created attachment 21582 [details]
make selected folder visible
The origin of this bug is that setting the visibility does
not seem to have any effect when this is done in a loop
where folders are opened.
(Big thanks to Marcel!)
I would like to extend this patch a little bit more so that also the last viewed image is saved and that the corresponding icon will be shown. Does that sound useful? Note that this should be very easy to do via the d->itemUrlToFind mechanism, if the problem (race condition?) described in the patch for http://bugs.kde.org/show_bug.cgi?id=96894 is solved. Hmm, maybe it is better to apply this patch first (it might take too long until I have time to tackle the additional feature and delay this ...) SVN commit 730938 by abaecker: Scroll the left panel on start up to so that the current selection is visible. CCBUGS: 144815 TODO:KDE4PORT M +2 -1 NEWS M +10 -2 digikam/folderview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=730938 SVN commit 730946 by cgilles: backport commit #730938 to KDE4 BUG: 144815 M +17 -4 folderview.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=730946 |