Bug 236002 - Photos not visible when starting in calendar view
Summary: Photos not visible when starting in calendar view
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 1.2.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 10:05 UTC by Mark Fraser
Modified: 2017-07-25 13:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.3.0
languitar: Junior_Jobs+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Fraser 2010-05-02 10:05:31 UTC
Version:           1.2.0 (using 4.4.2 (KDE 4.4.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.32-21-generic

If I start up digikam in calendar view there are no photos visible - I have to click on another year/month and then back again to see the photos.

If I start up in album view the photos are visible.
Comment 1 caulier.gilles 2010-05-03 08:29:26 UTC
It's probably a broken dependency with digiKam KIOSlave. Please check your packages.

Gilles Caulier
Comment 2 Mark Fraser 2010-05-03 09:58:49 UTC
I've tried removing digikam and reinstalling, but still no images. If I run it from within Konsole, I get:
Time elapsed: 24 ms
Time elapsed: 9 ms
Model: Time elapsed: 84 ms
Time elapsed: 12 ms
Time elapsed: 15 ms
Model: Time elapsed: 42 ms
No location could be retrieved for url  QUrl( "file:" )  
digikam(3577)/digikam (core) Digikam::ThumbnailCreator::load: Thumbnail is null for  "" 
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/mfraser/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 
QFSFileEngine::open: No file name specified
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
QFSFileEngine::open: No file name specified
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail. 
digikam(3577)/digikam (core): ThumbnailLoadThread::load: No thumbnail size specified. Refusing to load thumbnail.
Comment 3 Johannes Wienke 2010-05-03 10:31:33 UTC
May also be related to model view port.
Comment 4 Marcel Wiesweg 2010-05-03 17:28:23 UTC
Fully reproducable here, so probably Johannes is right.

Johannes, any quick hint where to look?
Comment 5 Mark Fraser 2010-05-03 17:35:59 UTC
Have just upgraded my laptop from Kubuntu 9.10 to 10.04 which upgraded Digikam from 1.1 to 1.2 and that isn't showing the photos initially too.
Comment 6 Johannes Wienke 2010-05-03 18:07:09 UTC
Probably something missing in DateFolderViewSideBarWidget::setActive or a function called there. setActive should switch the album manager to the right mode. If it isn't called on start up, something else must be wrong with the handling of left sidebar widgets.
Comment 7 Johannes Wienke 2010-05-09 13:57:47 UTC
SVN commit 1124554 by jwienke:

Fix loading of date album on application start.

The problem was that DAlbums are created asynchronously. The sidebar tab was activated before the albums are loaded which resulted in setting 0x0 as current album because the tree view was not populated. To prevent this the DateFolderView now listens on signaleAllDAlbumsLoaded and re-sets the current album in the album manager if this signal occurs and the folder view is active.

BUG: 236002

 M  +1 -1      HACKING  
 M  +2 -6      NEWS  
 M  +3 -3      digikam/albumtreeview.cpp  
 M  +15 -0     digikam/datefolderview.cpp  
 M  +1 -0      digikam/datefolderview.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1124554