+void KdenliveSettingsDialog::slotUpdateGrabRegionStatus()
+{
+ m_configCapture.region_group->setHidden(m_configCapture.kcfg_grab_capture_type->currentIndex() != 1);
+}
+
+void KdenliveSettingsDialog::slotEnableCaptureFolder()
+{
+ m_configEnv.capturefolderurl->setEnabled(!m_configEnv.kcfg_capturetoprojectfolder->isChecked());
+}
+
+void KdenliveSettingsDialog::checkProfile()
+{
+ m_configProject.kcfg_profiles_list->clear();
+ QMap <QString, QString> profilesInfo = ProfilesDialog::getProfilesInfo();
+ QMapIterator<QString, QString> i(profilesInfo);
+ while (i.hasNext()) {
+ i.next();
+ m_configProject.kcfg_profiles_list->addItem(i.key(), i.value());
+ }
+
+ if (!KdenliveSettings::default_profile().isEmpty()) {
+ for (int i = 0; i < m_configProject.kcfg_profiles_list->count(); ++i) {
+ if (m_configProject.kcfg_profiles_list->itemData(i).toString() == KdenliveSettings::default_profile()) {
+ m_configProject.kcfg_profiles_list->setCurrentIndex(i);
+ KdenliveSettings::setProfiles_list(i);
+ break;
+ }
+ }
+ }
+}
+
+void KdenliveSettingsDialog::initDevices()
+{
+ // Fill audio drivers
+ m_configSdl.kcfg_audio_driver->addItem(i18n("Automatic"), QString());
+#ifndef Q_WS_MAC
+ m_configSdl.kcfg_audio_driver->addItem(i18n("OSS"), "dsp");
+ m_configSdl.kcfg_audio_driver->addItem(i18n("ALSA"), "alsa");
+ m_configSdl.kcfg_audio_driver->addItem(i18n("PulseAudio"), "pulse");
+ m_configSdl.kcfg_audio_driver->addItem(i18n("OSS with DMA access"), "dma");
+ m_configSdl.kcfg_audio_driver->addItem(i18n("Esound daemon"), "esd");
+ m_configSdl.kcfg_audio_driver->addItem(i18n("ARTS daemon"), "artsc");
+#endif
+
+ if (!KdenliveSettings::audiodrivername().isEmpty())
+ for (int i = 1; i < m_configSdl.kcfg_audio_driver->count(); ++i) {
+ if (m_configSdl.kcfg_audio_driver->itemData(i).toString() == KdenliveSettings::audiodrivername()) {
+ m_configSdl.kcfg_audio_driver->setCurrentIndex(i);
+ KdenliveSettings::setAudio_driver((uint) i);
+ }
+ }
+
+ // Fill video drivers
+ m_configSdl.kcfg_video_driver->addItem(i18n("Automatic"), QString());
+#ifndef Q_WS_MAC
+ m_configSdl.kcfg_video_driver->addItem(i18n("XVideo"), "x11");
+ m_configSdl.kcfg_video_driver->addItem(i18n("X11"), "x11_noaccel");
+ m_configSdl.kcfg_video_driver->addItem(i18n("XFree86 DGA 2.0"), "dga");
+ m_configSdl.kcfg_video_driver->addItem(i18n("Nano X"), "nanox");
+ m_configSdl.kcfg_video_driver->addItem(i18n("Framebuffer console"), "fbcon");
+ m_configSdl.kcfg_video_driver->addItem(i18n("Direct FB"), "directfb");
+ m_configSdl.kcfg_video_driver->addItem(i18n("SVGAlib"), "svgalib");
+ m_configSdl.kcfg_video_driver->addItem(i18n("General graphics interface"), "ggi");
+ m_configSdl.kcfg_video_driver->addItem(i18n("Ascii art library"), "aalib");
+#endif
+
+ // Fill the list of audio playback / recording devices
+ m_configSdl.kcfg_audio_device->addItem(i18n("Default"), QString());
+ m_configCapture.kcfg_v4l_alsadevice->addItem(i18n("Default"), "default");
+ if (!KStandardDirs::findExe("aplay").isEmpty()) {
+ m_readProcess.setOutputChannelMode(KProcess::OnlyStdoutChannel);
+ m_readProcess.setProgram("aplay", QStringList() << "-l");
+ connect(&m_readProcess, SIGNAL(readyReadStandardOutput()) , this, SLOT(slotReadAudioDevices()));
+ m_readProcess.execute(5000);
+ } else {
+ // If aplay is not installed on the system, parse the /proc/asound/pcm file
+ QFile file("/proc/asound/pcm");
+ if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
+ QTextStream stream(&file);
+ QString line = stream.readLine();
+ QString deviceId;
+ while (!line.isNull()) {
+ if (line.contains("playback")) {
+ deviceId = line.section(':', 0, 0);
+ m_configSdl.kcfg_audio_device->addItem(line.section(':', 1, 1), "plughw:" + QString::number(deviceId.section('-', 0, 0).toInt()) + ',' + QString::number(deviceId.section('-', 1, 1).toInt()));
+ }
+ if (line.contains("capture")) {
+ deviceId = line.section(':', 0, 0);
+ m_configCapture.kcfg_v4l_alsadevice->addItem(line.section(':', 1, 1).simplified(), "hw:" + QString::number(deviceId.section('-', 0, 0).toInt()) + ',' + QString::number(deviceId.section('-', 1, 1).toInt()));
+ }
+ line = stream.readLine();
+ }
+ file.close();
+ } else kDebug()<<" / / / /CANNOT READ PCM";
+ }
+
+ // Add pulseaudio capture option
+ m_configCapture.kcfg_v4l_alsadevice->addItem(i18n("PulseAudio"), "pulse");
+
+ if (!KdenliveSettings::audiodevicename().isEmpty()) {
+ // Select correct alsa device
+ int ix = m_configSdl.kcfg_audio_device->findData(KdenliveSettings::audiodevicename());
+ m_configSdl.kcfg_audio_device->setCurrentIndex(ix);
+ KdenliveSettings::setAudio_device(ix);
+ }
+
+ if (!KdenliveSettings::v4l_alsadevicename().isEmpty()) {
+ // Select correct alsa device
+ int ix = m_configCapture.kcfg_v4l_alsadevice->findData(KdenliveSettings::v4l_alsadevicename());
+ m_configCapture.kcfg_v4l_alsadevice->setCurrentIndex(ix);
+ KdenliveSettings::setV4l_alsadevice(ix);
+ }
+
+ loadCurrentV4lProfileInfo();
+}
+
+
+void KdenliveSettingsDialog::slotReadAudioDevices()
+{
+ QString result = QString(m_readProcess.readAllStandardOutput());
+ kDebug() << "// / / / / / READING APLAY: ";
+ kDebug() << result;
+ QStringList lines = result.split('\n');
+ foreach(const QString & data, lines) {
+ //kDebug() << "// READING LINE: " << data;
+ if (!data.startsWith(' ') && data.count(':') > 1) {
+ QString card = data.section(':', 0, 0).section(' ', -1);
+ QString device = data.section(':', 1, 1).section(' ', -1);
+ m_configSdl.kcfg_audio_device->addItem(data.section(':', -1).simplified(), "plughw:" + card + ',' + device);
+ m_configCapture.kcfg_v4l_alsadevice->addItem(data.section(':', -1).simplified(), "hw:" + card + ',' + device);
+ }
+ }
+}
+
+void KdenliveSettingsDialog::showPage(int page, int option)
+{
+ switch (page) {
+ case 1:
+ setCurrentPage(m_page1);
+ break;
+ case 2:
+ setCurrentPage(m_page2);
+ break;
+ case 3:
+ setCurrentPage(m_page3);
+ break;
+ case 4:
+ setCurrentPage(m_page4);
+ m_configCapture.tabWidget->setCurrentIndex(option);
+ break;
+ case 5:
+ setCurrentPage(m_page5);
+ break;
+ case 6:
+ setCurrentPage(m_page6);
+ break;
+ case 7:
+ setCurrentPage(m_page7);
+ break;
+ default:
+ setCurrentPage(m_page1);
+ }
+}
+
+void KdenliveSettingsDialog::slotEditVideoApplication()
+{
+ KService::Ptr service;
+ QPointer<KOpenWithDialog> dlg = new KOpenWithDialog(KUrl::List(), i18n("Select default video player"), m_configEnv.kcfg_defaultplayerapp->text(), this);
+ if (dlg->exec() == QDialog::Accepted) {
+ service = dlg->service();
+ m_configEnv.kcfg_defaultplayerapp->setText(service->exec());
+ }
+
+ delete dlg;
+}
+
+void KdenliveSettingsDialog::slotEditAudioApplication()
+{
+ KService::Ptr service;
+ QPointer<KOpenWithDialog> dlg = new KOpenWithDialog(KUrl::List(), i18n("Select default audio editor"), m_configEnv.kcfg_defaultaudioapp->text(), this);
+ if (dlg->exec() == QDialog::Accepted) {
+ service = dlg->service();
+ m_configEnv.kcfg_defaultaudioapp->setText(service->exec());
+ }
+
+ delete dlg;
+}
+
+void KdenliveSettingsDialog::slotEditImageApplication()
+{
+ KService::Ptr service;
+ QPointer<KOpenWithDialog> dlg = new KOpenWithDialog(KUrl::List(), i18n("Select default image editor"), m_configEnv.kcfg_defaultimageapp->text(), this);
+ if (dlg->exec() == QDialog::Accepted) {
+ service = dlg->service();
+ m_configEnv.kcfg_defaultimageapp->setText(service->exec());
+ }
+ delete dlg;
+}
+
+void KdenliveSettingsDialog::slotCheckShuttle(int state)
+{
+#ifdef USE_JOGSHUTTLE
+ m_configShuttle.config_group->setEnabled(state);
+ m_configShuttle.shuttledevicelist->clear();
+
+ QStringList devNames = KdenliveSettings::shuttledevicenames();
+ QStringList devPaths = KdenliveSettings::shuttledevicepaths();
+
+ if (devNames.count() != devPaths.count()) {
+ return;
+ }
+ for (int i = 0; i < devNames.count(); i++) {
+ m_configShuttle.shuttledevicelist->addItem(
+ devNames.at(i), devPaths.at(i));
+ }
+#endif /* USE_JOGSHUTTLE */
+}
+
+void KdenliveSettingsDialog::slotUpdateShuttleDevice(int ix)
+{
+#ifdef USE_JOGSHUTTLE
+ QString device = m_configShuttle.shuttledevicelist->itemData(ix).toString();
+ //KdenliveSettings::setShuttledevice(device);
+ setupJogshuttleBtns(device);
+ m_configShuttle.kcfg_shuttledevice->setText(device);
+#endif /* USE_JOGSHUTTLE */
+}
+
+void KdenliveSettingsDialog::updateWidgets()
+{
+ // Revert widgets to last saved state (for example when user pressed "Cancel")
+ // kDebug() << "// // // KCONFIG Revert called";
+#ifdef USE_JOGSHUTTLE
+ // revert jog shuttle device
+ if (m_configShuttle.shuttledevicelist->count() > 0) {
+ for (int i = 0; i < m_configShuttle.shuttledevicelist->count(); ++i) {
+ if (m_configShuttle.shuttledevicelist->itemData(i) == KdenliveSettings::shuttledevice()) {
+ m_configShuttle.shuttledevicelist->setCurrentIndex(i);
+ break;
+ }
+ }
+ }
+
+ // Revert jog shuttle buttons
+ QList<QString> action_names = m_mappable_actions.keys();
+ qSort(action_names);
+ QStringList actions_map = JogShuttleConfig::actionMap(KdenliveSettings::shuttlebuttons());
+ QMap<QString, int> action_pos;
+ foreach (const QString& action_id, actions_map) {
+ // This loop find out at what index is the string that would map to the action_id.
+ for (int i = 0; i < action_names.size(); ++i) {
+ if (m_mappable_actions[action_names[i]] == action_id) {
+ action_pos[action_id] = i;
+ break;
+ }
+ }
+ }
+ int i = 0;
+ foreach (KComboBox* button, m_shuttle_buttons) {
+ ++i;
+ if (i < actions_map.size())
+ button->setCurrentIndex(action_pos[actions_map[i]]);
+ }
+#endif /* USE_JOGSHUTTLE */
+}
+
+void KdenliveSettingsDialog::updateSettings()
+{
+ // Save changes to settings (for example when user pressed "Apply" or "Ok")
+ // kDebug() << "// // // KCONFIG UPDATE called";
+ m_defaultProfile = m_configProject.kcfg_profiles_list->currentText();
+ KdenliveSettings::setDefault_profile(m_defaultPath);
+
+ bool resetProfile = false;
+ bool updateCapturePath = false;
+
+ /*if (m_configShuttle.shuttledevicelist->count() > 0) {
+ QString device = m_configShuttle.shuttledevicelist->itemData(m_configShuttle.shuttledevicelist->currentIndex()).toString();
+ if (device != KdenliveSettings::shuttledevice()) KdenliveSettings::setShuttledevice(device);
+ }*/
+
+ if (m_configEnv.kcfg_capturetoprojectfolder->isChecked() != KdenliveSettings::capturetoprojectfolder()) {
+ KdenliveSettings::setCapturetoprojectfolder(m_configEnv.kcfg_capturetoprojectfolder->isChecked());
+ updateCapturePath = true;
+ }
+
+ if (m_configEnv.capturefolderurl->url().path() != KdenliveSettings::capturefolder()) {
+ KdenliveSettings::setCapturefolder(m_configEnv.capturefolderurl->url().path());
+ updateCapturePath = true;
+ }
+
+ if (m_configCapture.kcfg_dvgrabfilename->text() != KdenliveSettings::dvgrabfilename()) {
+ KdenliveSettings::setDvgrabfilename(m_configCapture.kcfg_dvgrabfilename->text());
+ updateCapturePath = true;
+ }
+
+ if ((uint) m_configCapture.kcfg_firewireformat->currentIndex() != KdenliveSettings::firewireformat()) {
+ KdenliveSettings::setFirewireformat(m_configCapture.kcfg_firewireformat->currentIndex());
+ updateCapturePath = true;
+ }
+
+ if ((uint) m_configCapture.kcfg_v4l_format->currentIndex() != KdenliveSettings::v4l_format()) {
+ saveCurrentV4lProfile();
+ KdenliveSettings::setV4l_format(0);
+ }
+
+ // Check encoding profiles
+ // FFmpeg
+ QString data = m_configCapture.kcfg_v4l_profile->itemData(m_configCapture.kcfg_v4l_profile->currentIndex()).toString();
+ if (!data.isEmpty() && (data.section(';', 0, 0) != KdenliveSettings::v4l_parameters() || data.section(';', 1, 1) != KdenliveSettings::v4l_extension())) {
+ KdenliveSettings::setV4l_parameters(data.section(';', 0, 0));
+ KdenliveSettings::setV4l_extension(data.section(';', 1, 1));
+ }
+ // screengrab
+ data = m_configCapture.kcfg_grab_profile->itemData(m_configCapture.kcfg_grab_profile->currentIndex()).toString();
+ if (!data.isEmpty() && (data.section(';', 0, 0) != KdenliveSettings::grab_parameters() || data.section(';', 1, 1) != KdenliveSettings::grab_extension())) {
+ KdenliveSettings::setGrab_parameters(data.section(';', 0, 0));
+ KdenliveSettings::setGrab_extension(data.section(';', 1, 1));
+ }
+
+ // decklink
+ data = m_configCapture.kcfg_decklink_profile->itemData(m_configCapture.kcfg_decklink_profile->currentIndex()).toString();
+ if (!data.isEmpty() && (data.section(';', 0, 0) != KdenliveSettings::decklink_parameters() || data.section(';', 1, 1) != KdenliveSettings::decklink_extension())) {
+ KdenliveSettings::setDecklink_parameters(data.section(';', 0, 0));
+ KdenliveSettings::setDecklink_extension(data.section(';', 1, 1));
+ }
+ // proxies
+ data = m_configProject.kcfg_proxy_profile->itemData(m_configProject.kcfg_proxy_profile->currentIndex()).toString();
+ if (!data.isEmpty() && (data.section(';', 0, 0) != KdenliveSettings::proxyparams() || data.section(';', 1, 1) != KdenliveSettings::proxyextension())) {
+ KdenliveSettings::setProxyparams(data.section(';', 0, 0));
+ KdenliveSettings::setProxyextension(data.section(';', 1, 1));
+ }
+
+
+ if (updateCapturePath) emit updateCaptureFolder();
+
+ QString value = m_configCapture.kcfg_v4l_alsadevice->itemData(m_configCapture.kcfg_v4l_alsadevice->currentIndex()).toString();
+ if (value != KdenliveSettings::v4l_alsadevicename()) {
+ KdenliveSettings::setV4l_alsadevicename(value);
+ }
+
+ if (m_configSdl.kcfg_external_display->isChecked() != KdenliveSettings::external_display()) {
+ KdenliveSettings::setExternal_display(m_configSdl.kcfg_external_display->isChecked());
+ resetProfile = true;
+ }
+
+ value = m_configSdl.kcfg_audio_driver->itemData(m_configSdl.kcfg_audio_driver->currentIndex()).toString();
+ if (value != KdenliveSettings::audiodrivername()) {
+ KdenliveSettings::setAudiodrivername(value);
+ resetProfile = true;
+ }
+
+ if (value == "alsa") {
+ // Audio device setting is only valid for alsa driver
+ value = m_configSdl.kcfg_audio_device->itemData(m_configSdl.kcfg_audio_device->currentIndex()).toString();
+ if (value != KdenliveSettings::audiodevicename()) {
+ KdenliveSettings::setAudiodevicename(value);
+ resetProfile = true;
+ }
+ } else if (KdenliveSettings::audiodevicename().isEmpty() == false) {
+ KdenliveSettings::setAudiodevicename(QString::null);
+ resetProfile = true;
+ }
+
+ value = m_configSdl.kcfg_video_driver->itemData(m_configSdl.kcfg_video_driver->currentIndex()).toString();
+ if (value != KdenliveSettings::videodrivername()) {
+ KdenliveSettings::setVideodrivername(value);
+ resetProfile = true;
+ }
+
+ if (m_configSdl.kcfg_window_background->color() != KdenliveSettings::window_background()) {
+ KdenliveSettings::setWindow_background(m_configSdl.kcfg_window_background->color());
+ resetProfile = true;
+ }
+
+ if (m_configSdl.kcfg_volume->value() != KdenliveSettings::volume()) {
+ KdenliveSettings::setVolume(m_configSdl.kcfg_volume->value());
+ resetProfile = true;
+ }
+
+ if (m_modified) {
+ // The transcoding profiles were modified, save.
+ m_modified = false;
+ saveTranscodeProfiles();
+ }
+
+#ifdef USE_JOGSHUTTLE
+ m_shuttleModified = false;
+
+ QStringList actions;
+ actions << "monitor_pause"; // the Job rest position action.
+ foreach (KComboBox* button, m_shuttle_buttons) {
+ actions << m_mappable_actions[button->currentText()];
+ }
+ QString maps = JogShuttleConfig::actionMap(actions);
+ //fprintf(stderr, "Shuttle config: %s\n", JogShuttleConfig::actionMap(actions).toAscii().constData());
+ if (KdenliveSettings::shuttlebuttons() != maps)
+ KdenliveSettings::setShuttlebuttons(maps);
+#endif
+
+ KConfigDialog::settingsChangedSlot();
+ //KConfigDialog::updateSettings();
+ if (resetProfile) emit doResetProfile();
+}
+
+void KdenliveSettingsDialog::slotUpdateDisplay()
+{
+ QString currentProfile = m_configProject.kcfg_profiles_list->itemData(m_configProject.kcfg_profiles_list->currentIndex()).toString();
+ QMap< QString, QString > values = ProfilesDialog::getSettingsFromFile(currentProfile);
+ m_configProject.p_size->setText(values.value("width") + 'x' + values.value("height"));
+ m_configProject.p_fps->setText(values.value("frame_rate_num") + '/' + values.value("frame_rate_den"));
+ m_configProject.p_aspect->setText(values.value("sample_aspect_num") + '/' + values.value("sample_aspect_den"));
+ m_configProject.p_display->setText(values.value("display_aspect_num") + '/' + values.value("display_aspect_den"));
+ if (values.value("progressive").toInt() == 0)
+ m_configProject.p_progressive->setText(i18n("Interlaced"));
+ else
+ m_configProject.p_progressive->setText(i18n("Progressive"));
+ m_defaultProfile = m_configProject.kcfg_profiles_list->itemText(m_configProject.kcfg_profiles_list->currentIndex());
+ m_defaultPath = currentProfile;
+}
+
+void KdenliveSettingsDialog::slotCheckAlsaDriver()
+{
+ QString value = m_configSdl.kcfg_audio_driver->itemData(m_configSdl.kcfg_audio_driver->currentIndex()).toString();
+ m_configSdl.kcfg_audio_device->setEnabled(value == "alsa");
+}
+
+void KdenliveSettingsDialog::loadTranscodeProfiles()
+{
+ KSharedConfigPtr config = KSharedConfig::openConfig("kdenlivetranscodingrc", KConfig::CascadeConfig);
+ KConfigGroup transConfig(config, "Transcoding");
+ // read the entries
+ m_configTranscode.profiles_list->blockSignals(true);
+ m_configTranscode.profiles_list->clear();
+ QMap< QString, QString > profiles = transConfig.entryMap();
+ QMapIterator<QString, QString> i(profiles);
+ while (i.hasNext()) {
+ i.next();
+ QListWidgetItem *item = new QListWidgetItem(i.key());
+ QString data = i.value();
+ if (data.contains(';')) item->setToolTip(data.section(';', 1, 1));
+ item->setData(Qt::UserRole, data);
+ m_configTranscode.profiles_list->addItem(item);
+ //item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsEditable);
+ }
+ m_configTranscode.profiles_list->blockSignals(false);
+ m_configTranscode.profiles_list->setCurrentRow(0);
+}
+
+void KdenliveSettingsDialog::saveTranscodeProfiles()
+{
+ KSharedConfigPtr config = KSharedConfig::openConfig("kdenlivetranscodingrc", KConfig::CascadeConfig);
+ //KSharedConfigPtr config = KGlobal::config();
+ KConfigGroup transConfig(config, "Transcoding");
+ // read the entries
+ transConfig.deleteGroup();
+ int max = m_configTranscode.profiles_list->count();
+ for (int i = 0; i < max; ++i) {
+ QListWidgetItem *item = m_configTranscode.profiles_list->item(i);
+ transConfig.writeEntry(item->text(), item->data(Qt::UserRole).toString());
+ }
+ config->sync();
+}
+
+void KdenliveSettingsDialog::slotAddTranscode()
+{
+ if (!m_configTranscode.profiles_list->findItems(m_configTranscode.profile_name->text(), Qt::MatchExactly).isEmpty()) {
+ KMessageBox::sorry(this, i18n("A profile with that name already exists"));
+ return;
+ }
+ QListWidgetItem *item = new QListWidgetItem(m_configTranscode.profile_name->text());
+ QString data = m_configTranscode.profile_parameters->toPlainText();
+ data.append(" %1." + m_configTranscode.profile_extension->text());
+ data.append(';');
+ if (!m_configTranscode.profile_description->text().isEmpty())
+ data.append(m_configTranscode.profile_description->text());
+ if (m_configTranscode.profile_audioonly->isChecked()) data.append(";audio");
+ item->setData(Qt::UserRole, data);
+ m_configTranscode.profiles_list->addItem(item);
+ m_configTranscode.profiles_list->setCurrentItem(item);
+ slotDialogModified();
+}
+
+void KdenliveSettingsDialog::slotUpdateTranscodingProfile()
+{
+ QListWidgetItem *item = m_configTranscode.profiles_list->currentItem();
+ if (!item) return;
+ m_configTranscode.button_update->setEnabled(false);
+ item->setText(m_configTranscode.profile_name->text());
+ QString data = m_configTranscode.profile_parameters->toPlainText();
+ data.append(" %1." + m_configTranscode.profile_extension->text());
+ data.append(';');
+ if (!m_configTranscode.profile_description->text().isEmpty())
+ data.append(m_configTranscode.profile_description->text());
+ if (m_configTranscode.profile_audioonly->isChecked()) data.append(";audio");
+ item->setData(Qt::UserRole, data);
+ slotDialogModified();
+}
+
+void KdenliveSettingsDialog::slotDeleteTranscode()
+{
+ QListWidgetItem *item = m_configTranscode.profiles_list->currentItem();
+ if (item == NULL) return;
+ delete item;
+ slotDialogModified();
+}
+
+void KdenliveSettingsDialog::slotEnableTranscodeUpdate()
+{
+ if (!m_configTranscode.profile_box->isEnabled()) return;
+ bool allow = true;
+ if (m_configTranscode.profile_name->text().isEmpty() || m_configTranscode.profile_extension->text().isEmpty()) allow = false;
+ m_configTranscode.button_update->setEnabled(allow);
+}