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

Fix possible crash on document open

parent dcb71b2d
......@@ -3289,7 +3289,10 @@ void MainWindow::showToolMessage()
message = xi18nc("@info:whatsthis", "<shortcut>Click</shortcut> on a track view in the project monitor to perform a lift of all tracks except active one");
toolLabel = i18n("Multicam");
}
TimelineMode::EditMode mode = getMainTimeline()->controller()->getModel()->editMode();
TimelineMode::EditMode mode = TimelineMode::NormalEdit;
if (getMainTimeline()->controller() && getMainTimeline()->controller()->getModel()) {
mode = getMainTimeline()->controller()->getModel()->editMode();
}
if (mode != TimelineMode::NormalEdit) {
if (!toolLabel.isEmpty()) {
toolLabel.append(QStringLiteral(" | "));
......
Supports Markdown
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