Summary: | digikam crashed when I right-clicked in the (empty) "My Albums" view | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Gilles Schintgen <gschintgen> |
Component: | Database-Albums | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 0.8.1 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.0 | |
Sentry Crash Report: |
Description
Gilles Schintgen
2006-03-24 19:02:58 UTC
I can't reproduce this crash with current 0.8.2-svn (and 0.9.0-svn) implementation. Can you try again to checkout source code from svn and re-compile digiKam using ./configure --enable-debug=full option ? Thanks in advance Gilles Caulier > Can you try again to checkout source code from svn and re-compile digiKam
> using ./configure --enable-debug=full option ?
I'm sorry, currently I don't have time for such experiments. I couldn't even
reproduce the issue when I filed the bug report.
Gilles
SVN commit 563173 by mwiesweg: Add a null pointer check. I cannot reproduce the crash, but it is ok to add a null pointer check here. BuG: 124199 M +8 -5 albumiconview.cpp --- trunk/extragear/graphics/digikam/digikam/albumiconview.cpp #563172:563173 @@ -450,25 +450,28 @@ void AlbumIconView::slotRightButtonClicked(const QPoint& pos) { - if(d->currentAlbum->isRoot() || + if (!d->currentAlbum) + return; + + if (d->currentAlbum->isRoot() || ( d->currentAlbum->type() != Album::PHYSICAL && d->currentAlbum->type() != Album::TAG)) { return; } - + QPopupMenu popmenu(this); KAction *paste = KStdAction::paste(this, SLOT(slotPaste()), 0); QMimeSource *data = kapp->clipboard()->data(QClipboard::Clipboard); - + if(!data || !QUriDrag::canDecode(data)) { paste->setEnabled(false); } - + paste->plug(&popmenu); popmenu.exec(pos); - delete paste; + delete paste; } void AlbumIconView::slotRightButtonClicked(IconItem *item, const QPoint& pos) |