diff options
author | deva <deva> | 2009-12-01 09:08:45 +0000 |
---|---|---|
committer | deva <deva> | 2009-12-01 09:08:45 +0000 |
commit | 40294e22bd61cf7cf851ec6d6c7a41fd78cbdcad (patch) | |
tree | 19825db91a456419cee653d8e72b2fc4289348ec /dgedit/audioextractor.cc | |
parent | 373de0f137e4b7f7e8b348cabd6151573bd80a74 (diff) |
Added context menu to filelist. Remove file from list is now possible.
Diffstat (limited to 'dgedit/audioextractor.cc')
-rw-r--r-- | dgedit/audioextractor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dgedit/audioextractor.cc b/dgedit/audioextractor.cc index 8a08135..92ed4d6 100644 --- a/dgedit/audioextractor.cc +++ b/dgedit/audioextractor.cc @@ -129,11 +129,11 @@ void AudioExtractor::addFile(QString file, QString name) audiofiles.push_back(pair); } -void AudioExtractor::removeFile(QString file) +void AudioExtractor::removeFile(QString file, QString name) { QVector< QPair<QString, QString> >::iterator j = audiofiles.begin(); while(j != audiofiles.end()) { - if(file == j->first) { + if(file == j->first && name == j->second) { audiofiles.erase(j); return; } |