| Summary: | Moving Images while in Photobook view causes a sigsegv | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Alex Wright <bugzilla> |
| Component: | general | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | charles |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Alex Wright
2005-01-31 18:38:23 UTC
A crash also occurs if you drag a file, then select move from the menu. Copying doesn't cause a crash. Yes, absolutely does exist. I can't think of a way to fix this because it's caused by KFileIconView::firstFileItem() giving me an invalid item. Can a KFile developer please tell me if there's something I'm missing? thanks. CVS commit by charles:
BUG:98287
Fix a crash when files go away.
Thanks Waldo for the advice!
M +10 -0 photobook.cpp 1.10
M +1 -0 photobook.h 1.8
--- kdegraphics/kview/photobook/photobook.cpp #1.9:1.10
@@ -61,4 +61,8 @@ Previews::Previews(PhotoBook *parent, co
SLOT(open(const KFileItem*))
);
+ connect(
+ &mDirLister, SIGNAL(deleteItem(KFileItem *)),
+ SLOT(removeItem(KFileItem *))
+ );
setFixedWidth(128);
@@ -87,4 +91,10 @@ void Previews::insertNewFiles(const KFil
}
+void Previews::removeItem(KFileItem *item)
+{
+ KFileIconView::removeItem(item);
+}
+
+
void Previews::go(const KFileItem *k)
{
--- kdegraphics/kview/photobook/photobook.h #1.7:1.8
@@ -96,4 +96,5 @@ private slots:
void slotStarted();
void insertNewFiles(const KFileItemList &);
+ void removeItem(KFileItem *item);
void open(const KFileItem*);
void doneListing();
|