On 26/06/05, Daniel Kristjansson <[EMAIL PROTECTED]> wrote:
> On Sun, 2005-06-26 at 16:18 +0200, Torbjörn Jansson wrote:
> 
> > Channel scanning from mythtv-setup seems to be broken now, if i choose to do
> > a "full scan of existing transports" it gets stuck at 6%.
> > And when i press ESC to cancel i get back to the the page where you start
> > scanning and Scan Type combo box says: "Failed to open the card"
> 
> Hmm, I'll look at this.
> 

I think this should sort out the Escape issue - What was happening was
that the scan was
opening the card to scan, but the UI was then trying to look at the
card to work out what type
it was. This only showed up if you actually went back to the start screen
-- 
John
Index: scanwizardhelpers.h
===================================================================
--- scanwizardhelpers.h	(revision 6716)
+++ scanwizardhelpers.h	(working copy)
@@ -198,13 +198,15 @@
         TransportScan,
         Import
     };
-    ScanTypeSetting()
+    ScanTypeSetting() : nCaptureCard(-1)
     {
         setLabel(QObject::tr("Scan Type"));
         refresh("");
     }
   protected slots:
     void refresh(const QString&);
+  protected:
+    int nCaptureCard;
 };
 
 class ScanOptionalConfig: public VerticalConfigurationGroup,
Index: scanwizardhelpers.cpp
===================================================================
--- scanwizardhelpers.cpp	(revision 6716)
+++ scanwizardhelpers.cpp	(working copy)
@@ -224,6 +224,13 @@
 void ScanTypeSetting::refresh(const QString& card)
 {
     int nCard = card.toInt();
+    //Only do this if we really have to. If we do this too often
+    //Then we end up fighting the scan routine when we want to check
+    //the type of dvb card :/
+    if (nCard == nCaptureCard)
+        return;
+    else
+        nCaptureCard = nCard;
     int nCardType = CardUtil::GetCardType(nCard);
     clearSelections();
 
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to