From 7c2c249331e6abfd4dec17c48643f50c09d90653 Mon Sep 17 00:00:00 2001 From: Robert McNamara Date: Sun, 19 Jun 2011 12:20:51 -0700 Subject: [PATCH] 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. --- mythtv/libs/libmythtv/videosource.cpp | 4 +--- mythtv/libs/libmythtv/videosource.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mythtv/libs/libmythtv/videosource.cpp b/mythtv/libs/libmythtv/videosource.cpp index 5d7a5083267..ed216df7d9f 100644 --- a/mythtv/libs/libmythtv/videosource.cpp +++ b/mythtv/libs/libmythtv/videosource.cpp @@ -1337,8 +1337,6 @@ HDHomeRunTunerIndex::HDHomeRunTunerIndex() { setLabel(QObject::tr("Tuner")); setEnabled(false); - addSelection("0"); - addSelection("1"); connect(this, SIGNAL(valueChanged( const QString&)), this, SLOT( UpdateDevices(const QString&))); _oldValue = ""; @@ -1346,7 +1344,7 @@ HDHomeRunTunerIndex::HDHomeRunTunerIndex() void HDHomeRunTunerIndex::setEnabled(bool e) { - TransComboBoxSetting::setEnabled(e); + TransLineEditSetting::setEnabled(e); if (e) { if (!_oldValue.isEmpty()) setValue(_oldValue); diff --git a/mythtv/libs/libmythtv/videosource.h b/mythtv/libs/libmythtv/videosource.h index ffaba5f9e8b..5edd19ef26d 100644 --- a/mythtv/libs/libmythtv/videosource.h +++ b/mythtv/libs/libmythtv/videosource.h @@ -823,7 +823,7 @@ class HDHomeRunIP : public TransLineEditSetting QString _oldValue; }; -class HDHomeRunTunerIndex : public TransComboBoxSetting +class HDHomeRunTunerIndex : public TransLineEditSetting { Q_OBJECT