Commit a06cd10c authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix possible startup crash

parent f6a35ed8
Pipeline #20183 passed with stage
in 9 minutes and 24 seconds
......@@ -920,5 +920,8 @@ bool Core::enableMultiTrack(bool enable)
int Core::audioChannels()
return currentDoc()->audioChannels();
if (m_projectManager && m_projectManager->current()) {
return m_projectManager->current()->audioChannels();
return 2;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment