comparison main/OSCHandler.cpp @ 2435:f40cd7a512d4 spectrogram-export

Start work on spectrogram export code
author Chris Cannam
date Mon, 06 Jan 2020 14:49:48 +0000
parents efbf5ecb76b6
children 32dbc311c6d4
comparison
equal deleted inserted replaced
2434:43ac4c02efe9 2435:f40cd7a512d4
132 Layer *currentLayer = nullptr; 132 Layer *currentLayer = nullptr;
133 if (m_paneStack) currentPane = m_paneStack->getCurrentPane(); 133 if (m_paneStack) currentPane = m_paneStack->getCurrentPane();
134 if (currentPane) currentLayer = currentPane->getSelectedLayer(); 134 if (currentPane) currentLayer = currentPane->getSelectedLayer();
135 if (currentLayer) { 135 if (currentLayer) {
136 QString error; 136 QString error;
137 if (!exportLayerTo(currentLayer, path, error)) { 137 if (!exportLayerTo(currentLayer, currentPane, path, error)) {
138 SVCERR << "OSCHandler: Failed to export current layer to " << path << ": " << error << endl; 138 SVCERR << "OSCHandler: Failed to export current layer to " << path << ": " << error << endl;
139 } 139 }
140 } else { 140 } else {
141 SVCERR << "OSCHandler: No current layer to export" << endl; 141 SVCERR << "OSCHandler: No current layer to export" << endl;
142 } 142 }