]> git.sesse.net Git - kdenlive/blobdiff - src/mainwindow.cpp
Fix typo loop, fix missing i18n strings
[kdenlive] / src / mainwindow.cpp
index 6d083c4274d195ce8fdb439d18d58e06ed1271f0..43652b14c4439f813268e7e0e69551e696e49036 100644 (file)
@@ -119,7 +119,7 @@ MainWindow::MainWindow(QWidget *parent)
     m_findTimer.setSingleShot(true);
 
     initEffects::parseEffectFiles();
-    initEffects::parseCustomEffectsFile();
+    //initEffects::parseCustomEffectsFile();
 
     m_monitorManager = new MonitorManager();
 
@@ -223,11 +223,9 @@ MainWindow::MainWindow(QWidget *parent)
     }
     m_customEffectsMenu = static_cast<QMenu*>(factory()->container("custom_effects_menu", this));
     effects = customEffects.effectNames();
-    if (effects.isEmpty()) {
-        action = new QAction(i18n("No Custom Effects"), this);
-        action->setEnabled(false);
-        m_customEffectsMenu->addAction(action);
-    }
+    if (effects.isEmpty()) m_customEffectsMenu->setEnabled(false);
+    else m_customEffectsMenu->setEnabled(true);
+
     foreach(const QString &name, effects) {
         action = new QAction(name, this);
         action->setData(name);
@@ -345,11 +343,9 @@ void MainWindow::slotReloadEffects() {
     m_customEffectsMenu->clear();
     const QStringList effects = customEffects.effectNames();
     QAction *action;
-    if (effects.isEmpty()) {
-        action = new QAction(i18n("No Custom Effects"), this);
-        action->setEnabled(false);
-        m_customEffectsMenu->addAction(action);
-    }
+    if (effects.isEmpty()) m_customEffectsMenu->setEnabled(false);
+    else m_customEffectsMenu->setEnabled(true);
+
     foreach(const QString &name, effects) {
         action = new QAction(name, this);
         action->setData(name);