changeset 1723:26da177d7266

Emit signal when write completes
author Chris Cannam
date Wed, 12 Jun 2019 13:45:47 +0100
parents 29c5fdaccb9b
children 157c62ff0056
files data/model/WritableWaveFileModel.cpp data/model/WritableWaveFileModel.h
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp	Mon Jun 10 11:01:55 2019 +0100
+++ b/data/model/WritableWaveFileModel.cpp	Wed Jun 12 13:45:47 2019 +0100
@@ -248,6 +248,7 @@
     m_reader->updateDone();
     m_proportion = 100;
     emit modelChanged();
+    emit writeCompleted();
 }
 
 void
--- a/data/model/WritableWaveFileModel.h	Mon Jun 10 11:01:55 2019 +0100
+++ b/data/model/WritableWaveFileModel.h	Wed Jun 12 13:45:47 2019 +0100
@@ -196,6 +196,9 @@
                        QString indent = "",
                        QString extraAttributes = "") const override;
 
+signals:
+    void writeCompleted();
+    
 protected:
     ReadOnlyWaveFileModel *m_model;