new MainWindowAdaptor(this);
QDBusConnection dbus = QDBusConnection::sessionBus();
dbus.registerObject("/MainWindow", this);
- //setlocale(LC_NUMERIC, "POSIX");
if (!KdenliveSettings::colortheme().isEmpty()) slotChangePalette(NULL, KdenliveSettings::colortheme());
setFont(KGlobalSettings::toolBarFont());
parseProfiles(MltPath);
m_clipMonitor->refreshMonitor(true);
progressDialog.progressBar()->setValue(4);
- bool readOnly = !doc->isReadOnly();
- factory()->container("edit", this)->setEnabled(readOnly);
- factory()->container("project", this)->setEnabled(readOnly);
- factory()->container("tool", this)->setEnabled(readOnly);
- factory()->container("clip", this)->setEnabled(readOnly);
- factory()->container("timeline", this)->setEnabled(readOnly);
- factory()->container("monitor", this)->setEnabled(readOnly);
if (openBackup) slotOpenBackupDialog(url);
}
void MainWindow::slotUpdateDocumentState(bool modified)
{
- if (!m_activeDocument || m_activeDocument->isReadOnly()) return;
+ if (!m_activeDocument) return;
setCaption(m_activeDocument->description(), modified);
m_saveAction->setEnabled(modified);
if (modified) {
if (m_renderWidget->automaticAudioExport()) {
exportAudio = m_activeTimeline->checkProjectAudio();
} else exportAudio = m_renderWidget->selectedAudioExport();
+
+ // Set playlist audio volume to 100%
+ QDomDocument doc;
+ doc.setContent(playlistContent);
+ QDomElement tractor = doc.documentElement().firstChildElement("tractor");
+ if (!tractor.isNull()) {
+ QDomNodeList props = tractor.elementsByTagName("property");
+ for (int i = 0; i < props.count(); i++) {
+ if (props.at(i).toElement().attribute("name") == "meta.volume") {
+ props.at(i).firstChild().setNodeValue("1");
+ break;
+ }
+ }
+ }
// Do we want proxy rendering
if (m_projectList->useProxy() && !m_renderWidget->proxyRendering()) {
- QDomDocument doc;
- doc.setContent(playlistContent);
QString root = doc.documentElement().attribute("root");
// replace proxy clips with originals
playlistContent.replace(key, i.value());
}
}*/
- playlistContent = doc.toString();
}
+ playlistContent = doc.toString();
// Do save scenelist
QFile file(playlistPath);