aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <[email protected]>2015-11-16 23:50:52 +0100
committerJean-Baptiste Mardelle <[email protected]>2015-11-16 23:50:52 +0100
commit08dd352c527bfb8bbdfe72ef39b7bd2d788a1b72 (patch)
tree818aa2e5f63bf983544ff1fe3c66a10c7e109c2e
parent59601a86174d1f32e7593cf6d48e15f12c9e54af (diff)
Fix editing transcoders does not update bin transcode context menu
-rw-r--r--src/mainwindow.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 68a93f6..834b54d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1725,6 +1725,7 @@ void MainWindow::updateConfiguration()
m_buttonAutomaticSplitAudio->setChecked(KdenliveSettings::splitaudio());
// Update list of transcoding profiles
+ buildDynamicActions();
loadTranscoders();
loadClipActions();
}
@@ -2728,7 +2729,12 @@ void MainWindow::loadDockActions()
void MainWindow::buildDynamicActions()
{
- KActionCategory *ts = new KActionCategory(i18n("Transcoders"), m_extraFactory->actionCollection());
+ KActionCategory *ts = NULL;
+ if (kdenliveCategoryMap.contains("transcoders")) {
+ ts = kdenliveCategoryMap.take("transcoders");
+ delete ts;
+ }
+ ts = new KActionCategory(i18n("Transcoders"), m_extraFactory->actionCollection());
KSharedConfigPtr config = KSharedConfig::openConfig(QStandardPaths::locate(QStandardPaths::DataLocation, "kdenlivetranscodingrc"), KConfig::CascadeConfig);
KConfigGroup transConfig(config, "Transcoding");
@@ -2750,7 +2756,12 @@ void MainWindow::buildDynamicActions()
kdenliveCategoryMap.insert("transcoders", ts);
// Populate View menu with show / hide actions for dock widgets
- KActionCategory *guiActions = new KActionCategory(i18n("Interface"), actionCollection());
+ KActionCategory *guiActions = NULL;
+ if (kdenliveCategoryMap.contains("interface")) {
+ guiActions = kdenliveCategoryMap.take("interface");
+ delete guiActions;
+ }
+ guiActions = new KActionCategory(i18n("Interface"), actionCollection());
QAction *showTimeline = new QAction(i18n("Timeline"), this);
showTimeline->setCheckable(true);
showTimeline->setChecked(true);