Changeset 1641


Ignore:
Timestamp:
Jul 11, 2012, 1:37:02 AM (7 years ago)
Author:
bruno
Message:
  • Fix issue on radio button in CD choice
File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/CDDBeditor/devel/CDDBeditor/bin/CDDBeditor

    r1638 r1641  
    182182$ce_cddb_mode{"1"} = "http";
    183183
    184 $ce_config{"CDDB_MODE"}=$ce_cddb_mode{"1"};
     184$ce_config{"CDDB_MODE"}=$ce_cddb_mode{"0"};
    185185$ce_config{"CD_DEVICE"}="/dev/sr1";
    186186$ce_config{"HTTP_PROXY"}=$ENV{http_proxy} if $ENV{http_proxy};
     
    212212my $mode_group;
    213213my $proxy_entry = undef;
    214 $mode_group = Newt::HRadiogroup($ce_cddb_mode{"0"}, $ce_cddb_mode{"1"});
     214if ($ce_config{"CDDB_MODE"} eq $ce_cddb_mode{"0"}) {
     215    $mode_group = Newt::HRadiogroup($ce_cddb_mode{"0"}, $ce_cddb_mode{"1"});
     216} else {
     217    $mode_group = Newt::HRadiogroup($ce_cddb_mode{"1"}, $ce_cddb_mode{"0"});
     218}
    215219if ($ce_config{"CDDB_MODE"} eq "http" ) {
    216220    $proxy_entry = Newt::Entry($width, $flag, $ce_config{"HTTP_PROXY"});
     
    218222my $dev_entry = Newt::Entry($width, $flag, $ce_config{"CD_DEVICE"});
    219223my $user_group;
     224my $next_button = Newt::Button("Next");
     225$next_button->Tag("Next");
    220226my $quit_button = Newt::Button("Quit");
    221227$quit_button->Tag("Quit");
    222 my $next_button = Newt::Button("Next");
    223 $next_button->Tag("Next");
    224228
    225229my $ce_panel = Newt::Panel(2, 20, "CDDBeditor Configuration");
Note: See TracChangeset for help on using the changeset viewer.