# HG changeset patch # User Chris Cannam # Date 1560343547 -3600 # Node ID 26da177d726637a42b5b64e1ce8418b56e32db0a # Parent 29c5fdaccb9b544a13944e665e4bd624119e5f54 Emit signal when write completes diff -r 29c5fdaccb9b -r 26da177d7266 data/model/WritableWaveFileModel.cpp --- 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 diff -r 29c5fdaccb9b -r 26da177d7266 data/model/WritableWaveFileModel.h --- 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;