// load proxy profiles
- QString profileFile = KStandardDirs::locateLocal("appdata", "encodingprofiles.rc");
- KConfig conf(profileFile, KConfig::SimpleConfig);
+ KConfig conf("encodingprofiles.rc", KConfig::FullConfig, "appdata");
KConfigGroup group(&conf, "proxy");
QMap <QString, QString> values = group.entryMap();
QMapIterator<QString, QString> k(values);
if (!k.key().isEmpty()) {
QString params = k.value().section(';', 0, 0);
QString extension = k.value().section(';', 1, 1);
- if (params == proxyparameters && extension == proxyextension) {
+ if (ix == -1 && ((params == proxyparameters && extension == proxyextension) || (proxyparameters.isEmpty() || proxyextension.isEmpty()))) {
// this is the current profile
ix = proxy_profile->count();
}
// List all files that are used in the project. That also means:
// images included in slideshow and titles, files in playlist clips
- // TODO: images used in luma transitions, files used for LADSPA effects?
+ // TODO: images used in luma transitions?
// Setup categories
QTreeWidgetItem *videos = new QTreeWidgetItem(files_list, QStringList() << i18n("Video clips"));
usedSize += clip->fileSize();
}
}
-#if QT_VERSION >= 0x040500
allFonts.removeDuplicates();
-#endif
// Hide unused categories
for (int i = 0; i < files_list->topLevelItemCount(); i++) {
if (files_list->topLevelItem(i)->childCount() == 0) {