Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HDHomeRun: Make Tuner number editable.
Since we can't create the right number of tuners automatically in .24, at least allow manual edit so that HDHR Prime users can use all their tuners.
  • Loading branch information
Robert McNamara committed Jun 19, 2011
1 parent ef79f36 commit 7c2c249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions mythtv/libs/libmythtv/videosource.cpp
Expand Up @@ -1337,16 +1337,14 @@ HDHomeRunTunerIndex::HDHomeRunTunerIndex()
{
setLabel(QObject::tr("Tuner"));
setEnabled(false);
addSelection("0");
addSelection("1");
connect(this, SIGNAL(valueChanged( const QString&)),
this, SLOT( UpdateDevices(const QString&)));
_oldValue = "";
};

void HDHomeRunTunerIndex::setEnabled(bool e)
{
TransComboBoxSetting::setEnabled(e);
TransLineEditSetting::setEnabled(e);
if (e) {
if (!_oldValue.isEmpty())
setValue(_oldValue);
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videosource.h
Expand Up @@ -823,7 +823,7 @@ class HDHomeRunIP : public TransLineEditSetting
QString _oldValue;
};

class HDHomeRunTunerIndex : public TransComboBoxSetting
class HDHomeRunTunerIndex : public TransLineEditSetting
{
Q_OBJECT

Expand Down

0 comments on commit 7c2c249

Please sign in to comment.