]> git.sesse.net Git - kdenlive/blobdiff - src/projectlist.cpp
Various fixes to improve general stability in Qt 4.5.2
[kdenlive] / src / projectlist.cpp
index 56b402e53f4802d0b7a28457ae0603c5069eafb1..574fc94d2744ae04194ad065608b1882a3282d03 100644 (file)
@@ -642,8 +642,7 @@ void ProjectList::slotAddClip(const QList <QUrl> givenList, const QString &group
                 allExtensions.append(' ');
             }
         }
-        QString dialogFilter = allExtensions + ' ' + QLatin1Char('|') + i18n("All Supported Files");
-        dialogFilter.append("\n*" + QLatin1Char('|') + i18n("All Files"));
+        const QString dialogFilter = allExtensions.simplified() + ' ' + QLatin1Char('|') + i18n("All Supported Files") + "\n* " + QLatin1Char('|') + i18n("All Files");
         list = KFileDialog::getOpenUrls(KUrl("kfiledialog:///clipfolder"), dialogFilter, this);
 
     } else {