Commit 90348b03 authored by Scott Wheeler's avatar Scott Wheeler

Removed the destroyed() signal and calls to it. Also cleared out a couple

of stale data member pointers.

svn path=/trunk/kdemultimedia/juk/; revision=144640
parent cac9ebb2
......@@ -43,7 +43,6 @@ FileListItem::FileListItem(FileListItem *item, KListView *parent) : QObject(pare
FileListItem::~FileListItem()
{
data->deleteUser();
emit(destroyed(this));
}
void FileListItem::setFile(QString file)
......@@ -96,13 +95,11 @@ bool FileListItem::isWritable() const { return(data->isWritable()); }
void FileListItem::addSibling(FileListItem *sibling)
{
connect(sibling, SIGNAL(refreshed()), this, SLOT(refresh()));
connect(sibling, SIGNAL(destroyed(FileListItem *)), this, SLOT(removeSibling(FileListItem *)));
}
void FileListItem::removeSibling(FileListItem *sibling)
{
disconnect(sibling, SIGNAL(refreshed()), this, SLOT(refresh()));
disconnect(sibling, SIGNAL(destroyed(FileListItem *)), this, SLOT(removeSibling(FileListItem *)));
}
////////////////////////////////////////////////////////////////////////////////
......@@ -161,13 +158,3 @@ int FileListItem::compare(FileListItem *firstItem, FileListItem *secondItem, int
return(firstItem->key(column, ascending).compare(secondItem->key(column, ascending)));
}
}
////////////////////////////////////////////////////////////////////////////////
// private slots
////////////////////////////////////////////////////////////////////////////////
void FileListItem::parentDestroyed(FileListItem *parent)
{
disconnect(parent, SIGNAL(destroyed(FileListItem *)), this, SLOT(parentDestroyed(FileListItem *)));
}
......@@ -57,19 +57,12 @@ public slots:
signals:
void refreshed();
void destroyed(FileListItem *);
private:
int compare(QListViewItem *item, int column, bool ascending) const;
int compare(FileListItem *firstItem, FileListItem *secondItem, int column, bool ascending) const;
FileListItemData *data;
QFileInfo *fileInfo;
Tag *tag;
AudioData *audioData;
private slots:
void parentDestroyed(FileListItem *parent);
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment