author | llornkcor <llornkcor> | 2002-08-03 20:17:36 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-03 20:17:36 (UTC) |
commit | 8fb605fdfbbcbc654f567efcb59f02ec0d26228a (patch) (unidiff) | |
tree | a51e37a8b6248ca9cebe46d9f308caaa298e7f2f | |
parent | aa06a62511cabebeaad1d3dda34b30640f967dea (diff) | |
download | opie-8fb605fdfbbcbc654f567efcb59f02ec0d26228a.zip opie-8fb605fdfbbcbc654f567efcb59f02ec0d26228a.tar.gz opie-8fb605fdfbbcbc654f567efcb59f02ec0d26228a.tar.bz2 |
fixed segfault on Properties
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp index 1dee422..9065d63 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp | |||
@@ -835,22 +835,21 @@ void PlayListWidget::listDelete() { | |||
835 | QString currentPlaylist = cfg.readEntry("CurrentPlaylist",""); | 835 | QString currentPlaylist = cfg.readEntry("CurrentPlaylist",""); |
836 | QString file; | 836 | QString file; |
837 | int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); | 837 | int noOfFiles = cfg.readNumEntry("NumberOfFiles", 0 ); |
838 | switch ( tabWidget->currentPageIndex()) { | 838 | switch ( tabWidget->currentPageIndex()) { |
839 | case 0: | 839 | case 0: |
840 | break; | 840 | break; |
841 | case 1: | 841 | case 1: |
842 | { | 842 | { |
843 | file = audioView->selectedItem()->text(0); | 843 | file = audioView->currentItem()->text(0); |
844 | QListIterator<DocLnk> dit( files.children() ); | 844 | QListIterator<DocLnk> Pdit( files.children() ); |
845 | for ( ; dit.current(); ++dit ) { | 845 | for ( ; Pdit.current(); ++Pdit ) { |
846 | if( dit.current()->name() == file) { | 846 | if( Pdit.current()->name() == file) { |
847 | // qDebug(file); | 847 | LnkProperties prop( Pdit.current() ); |
848 | LnkProperties prop( dit.current() ); | ||
849 | prop.showMaximized(); | 848 | prop.showMaximized(); |
850 | prop.exec(); | 849 | prop.exec(); |
851 | } | 850 | } |
852 | } | 851 | } |
853 | populateAudioView(); | 852 | populateAudioView(); |
854 | } | 853 | } |
855 | break; | 854 | break; |
856 | case 2: | 855 | case 2: |