Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

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