]> git.sesse.net Git - vlc/commitdiff
Qt4: remove useless IPv6 option
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 12 Jul 2008 15:40:22 +0000 (18:40 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 12 Jul 2008 15:41:16 +0000 (18:41 +0300)
We have been able to autodetect this for ages

modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/ui/open_net.ui

index 94e17c2738232d64a0769587aaffe23b273088c8..529d143daa221b45642bc7219de80313ea147947 100644 (file)
@@ -418,7 +418,6 @@ NetOpenPanel::NetOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
     CONNECT( ui.portSpin, valueChanged( int ), this, updateMRL() );
     CONNECT( ui.addressText, textChanged( QString ), this, updateMRL());
     CONNECT( ui.timeShift, clicked(), this, updateMRL());
-    CONNECT( ui.ipv6, clicked(), this, updateMRL());
 
     ui.protocolCombo->addItem( "" );
     ui.protocolCombo->addItem("HTTP", QVariant("http"));
@@ -446,7 +445,6 @@ void NetOpenPanel::updateProtocol( int idx_proto ) {
 
     ui.timeShift->setEnabled( idx_proto == UDP_PROTO ||
                               idx_proto == UDPM_PROTO );
-    ui.ipv6->setEnabled( idx_proto == UDP_PROTO );
     ui.addressText->setEnabled( idx_proto != UDP_PROTO );
     ui.portSpin->setEnabled( idx_proto == UDP_PROTO ||
                              idx_proto == UDPM_PROTO );
@@ -505,10 +503,6 @@ void NetOpenPanel::updateMRL() {
             break;
         case UDP_PROTO:
             mrl = "udp://@";
-            if( ui.ipv6->isEnabled() && ui.ipv6->isChecked() )
-            {
-                mrl += "[::]";
-            }
             mrl += QString(":%1").arg( ui.portSpin->value() );
             emit methodChanged("udp-caching");
             break;
index 85b7a91911fd6df69eafcecbc8e29c98792a2b40..8af212c378edaa568d69dc05a79f7a28eb632a69 100644 (file)
         </property>
        </widget>
       </item>
-      <item>
-       <widget class="QCheckBox" name="ipv6" >
-        <property name="text" >
-         <string>_("Force IPv6")</string>
-        </property>
-       </widget>
-      </item>
      </layout>
     </widget>
    </item>
   <tabstop>addressText</tabstop>
   <tabstop>portSpin</tabstop>
   <tabstop>timeShift</tabstop>
-  <tabstop>ipv6</tabstop>
  </tabstops>
  <resources/>
  <connections/>