Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 2435:f40cd7a512d4 spectrogram-export
Start work on spectrogram export code
author | Chris Cannam |
---|---|
date | Mon, 06 Jan 2020 14:49:48 +0000 |
parents | b6d0823e41a5 |
children | d811380516f6 |
comparison
equal
deleted
inserted
replaced
2434:43ac4c02efe9 | 2435:f40cd7a512d4 |
---|---|
3020 | 3020 |
3021 if (path == "") return; | 3021 if (path == "") return; |
3022 | 3022 |
3023 QString error; | 3023 QString error; |
3024 | 3024 |
3025 if (!exportLayerTo(layer, path, error)) { | 3025 if (!exportLayerTo(layer, pane, path, error)) { |
3026 QMessageBox::critical(this, tr("Failed to write file"), error); | 3026 QMessageBox::critical(this, tr("Failed to write file"), error); |
3027 } else { | 3027 } else { |
3028 m_recentFiles.addFile(path); | 3028 m_recentFiles.addFile(path); |
3029 emit activity(tr("Export layer to \"%1\"").arg(path)); | 3029 emit activity(tr("Export layer to \"%1\"").arg(path)); |
3030 } | 3030 } |