Commit 94646237071377e6db09d3e114748bb08f7f575e
disable transcoding option for media devices if no transcode script is running
svn path=/trunk/extragear/multimedia/amarok/; revision=528017
| |   |
| 18 | 18 | #include "medium.h" |
| 19 | 19 | #include "plugin/pluginconfig.h" |
| 20 | 20 | #include "pluginmanager.h" |
| #include "scriptmanager.h" |
| 21 | 22 | |
| 22 | 23 | #include <qlabel.h> |
| 23 | 24 | #include <qtooltip.h> |
| … | … | |
| 95 | 95 | m_transcodeRemove = new QCheckBox( transcodeGroup ); |
| 96 | 96 | m_transcodeRemove->setText( i18n( "Remove transcoded files after transfer" ) ); |
| 97 | 97 | m_transcodeRemove->setChecked( device->m_transcodeRemove ); |
|
| const ScriptManager *sm = ScriptManager::instance(); |
| m_transcodeCheck->setEnabled( sm->transcodeScriptRunning() != QString::null ); |
| transcodeGroup->setEnabled( sm->transcodeScriptRunning() != QString::null ); |
| 98 | 102 | |
| 99 | 103 | device->addConfigElements( vbox ); |
| 100 | 104 | } |