summaryrefslogtreecommitdiff
path: root/dgedit/audioextractor.cc
diff options
context:
space:
mode:
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++;
+ }
+}