summaryrefslogtreecommitdiff
path: root/dgedit/audioextractor.cc
diff options
context:
space:
mode:
authordeva <deva>2009-12-02 08:19:01 +0000
committerdeva <deva>2009-12-02 08:19:01 +0000
commitca1da8e0d448a47704a22685248ee7b44f2c7bec (patch)
tree7c12ab5acdd6c033df7073f903d559f9c6904015 /dgedit/audioextractor.cc
parent22db10eed86c90d05ed19446afd0fc007bec0d66 (diff)
Fixed renaming in extractor.
Diffstat (limited to 'dgedit/audioextractor.cc')
-rw-r--r--dgedit/audioextractor.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/dgedit/audioextractor.cc b/dgedit/audioextractor.cc
index 92ed4d6..92bd105 100644
--- a/dgedit/audioextractor.cc
+++ b/dgedit/audioextractor.cc
@@ -99,7 +99,7 @@ void AudioExtractor::exportSelection(QString name,
void AudioExtractor::exportSelections(Selections selections)
{
- QVector< QPair<QString, QString> >::iterator j = audiofiles.begin();
+ AudioFileList::iterator j = audiofiles.begin();
while(j != audiofiles.end()) {
QString file = j->first;
@@ -131,9 +131,9 @@ void AudioExtractor::addFile(QString file, QString name)
void AudioExtractor::removeFile(QString file, QString name)
{
- QVector< QPair<QString, QString> >::iterator j = audiofiles.begin();
+ AudioFileList::iterator j = audiofiles.begin();
while(j != audiofiles.end()) {
- if(file == j->first && name == j->second) {
+ if(file == j->first/* && name == j->second*/) {
audiofiles.erase(j);
return;
}
@@ -151,3 +151,14 @@ void AudioExtractor::setExportPath(const QString &path)
exportpath = path;
}
+void AudioExtractor::changeName(QString file, QString name)
+{
+ AudioFileList::iterator j = audiofiles.begin();
+ while(j != audiofiles.end()) {
+ if(file == j->first) {
+ j->second = name;
+ return;
+ }
+ j++;
+ }
+}