[KPhotoAlbum] Bug: View crashes

Christoph Moseler forums at moseler.net
Thu Sep 13 21:19:21 BST 2007


Hi,

when invoking "View", kpa crashes

Steps to reproduce:
 > kphotoalbum -demo
ctrl-i

It is crashing in ImageInfo::fileName because <this> is null, called from

Viewer::ViewerWidget::load():
   bool isReadable = QFileInfo( currentInfo()->fileName() ).isReadable();

currentInfo() returns null

Viewer::ViewerWidget::currentInfo():
   return DB::ImageDB::instance()->info(_list[ _current])

DB::ImageDB::instance()->info(_list[ _current]) returns null for 
filename set to "" (empty string).

But I couldn't figure out, why _list[ _current] is empty.

svn://anonsvn.kde.org/home/kde/branches/extragear/kde3/graphics/kphotoalbum, 
rev 712065

Any ideas?

Cheers,
Christoph



More information about the Kphotoalbum mailing list