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

Add subtitle actions in Project menu

parent 234b8fdf
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd"> <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="kdenlive" version="194" translationDomain="kdenlive"> <kpartgui name="kdenlive" version="195" translationDomain="kdenlive">
<MenuBar> <MenuBar>
<Menu name="file" > <Menu name="file" >
<Action name="file_save"/> <Action name="file_save"/>
...@@ -27,6 +27,10 @@ ...@@ -27,6 +27,10 @@
<Action name="download_resource" /> <Action name="download_resource" />
<Menu name="generators" ><text>Generators</text> <Menu name="generators" ><text>Generators</text>
</Menu> </Menu>
<Menu name="subtitles" ><text>Subtitles</text>
<Action name="subtitle_tool" />
<Action name="add_subtitle" />
</Menu>
<Separator /> <Separator />
<Action name="bin_view_mode" /> <Action name="bin_view_mode" />
<Action name="stopmotion" /> <Action name="stopmotion" />
......
...@@ -4182,6 +4182,9 @@ void MainWindow::slotEditSubtitle() ...@@ -4182,6 +4182,9 @@ void MainWindow::slotEditSubtitle()
void MainWindow::slotAddSubtitle() void MainWindow::slotAddSubtitle()
{ {
if (pCore->currentDoc()->getSubtitleModel() == nullptr) {
slotEditSubtitle();
}
getCurrentTimeline()->controller()->addSubtitle(); getCurrentTimeline()->controller()->addSubtitle();
} }
......
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