comparison framework/MainWindowBase.cpp @ 504:74fa499d5f3c 3.0-integration

Remove duplicate code
author Chris Cannam
date Wed, 14 Oct 2015 13:33:42 +0100
parents 0fe07a89fbbb
children 7cf6f5501212 14a81e881b1a
comparison
equal deleted inserted replaced
503:0fe07a89fbbb 504:74fa499d5f3c
2699 if (action) action->setChecked(false); 2699 if (action) action->setChecked(false);
2700 return; 2700 return;
2701 } 2701 }
2702 } 2702 }
2703 2703
2704 QAction *action = qobject_cast<QAction *>(sender());
2705
2706 if (m_audioRecordMode == RecordReplaceSession) {
2707 if (!checkSaveModified()) {
2708 if (action) action->setChecked(false);
2709 return;
2710 }
2711 }
2712
2713 m_audioIO->resume(); 2704 m_audioIO->resume();
2714 WritableWaveFileModel *model = m_recordTarget->startRecording(); 2705 WritableWaveFileModel *model = m_recordTarget->startRecording();
2715 if (!model) { 2706 if (!model) {
2716 cerr << "ERROR: MainWindowBase::record: Recording failed" << endl; 2707 cerr << "ERROR: MainWindowBase::record: Recording failed" << endl;
2717 //!!! report 2708 //!!! report