Summary: | K3B crash when Delete Key Used to Remove Wave file from Audio roject | ||
---|---|---|---|
Product: | [Applications] k3b | Reporter: | Nigel Hanlon <cyberax262> |
Component: | Audio Project | Assignee: | Sebastian Trueg <trueg> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nigel Hanlon
2007-07-04 21:27:44 UTC
SVN commit 689560 by trueg: Disalble the audio player animation before deleting the currently playing track. BUG: 147548 M +6 -0 libk3b/tools/k3blistviewitemanimator.cpp M +2 -0 libk3b/tools/k3blistviewitemanimator.h M +3 -0 src/projects/k3baudiotrackview.cpp --- branches/extragear/kde3/multimedia/k3b/libk3b/tools/k3blistviewitemanimator.cpp #689559:689560 @@ -42,6 +42,12 @@ } +QListViewItem* K3bListViewItemAnimator::item() const +{ + return m_item; +} + + void K3bListViewItemAnimator::init() { m_item = 0; --- branches/extragear/kde3/multimedia/k3b/libk3b/tools/k3blistviewitemanimator.h #689559:689560 @@ -39,6 +39,8 @@ K3bListViewItemAnimator( QListViewItem* item, int col, QObject* parent = 0, const char* name = 0 ); ~K3bListViewItemAnimator(); + QListViewItem* item() const; + public slots: void start(); void stop(); --- branches/extragear/kde3/multimedia/k3b/src/projects/k3baudiotrackview.cpp #689559:689560 @@ -510,6 +510,9 @@ void K3bAudioTrackView::slotTrackRemoved( K3bAudioTrack* track ) { kdDebug() << "(K3bAudioTrackView::slotTrackRemoved( " << track << " )" << endl; + if ( m_playerItemAnimator->item() == m_trackItemMap[track] ) { + m_playerItemAnimator->stop(); + } delete m_trackItemMap[track]; m_trackItemMap.erase(track); } Just a quick remark: perfect bugreport. Thanks a lot. :) |