Ticket #4074: mythmusic_disable_CreateCDAudio_button.diff

File mythmusic_disable_CreateCDAudio_button.diff, 1.1 KB (added by Roo <roo.watt@…>, 16 years ago)
  • mythmusic/mythmusic/databasebox.cpp

     
    875875
    876876    if (cdwriter)
    877877    {
     878#if 0
     879        /*
     880         Disabled as Playlist::CreateCDAudio() is empty,
     881         it is called by CreateCDAudio()
     882        */
    878883        cdaudiob = active_popup->addButton(tr("Create Audio CD from "
    879884                                               "Playlist"), this,
    880885                                               SLOT(CreateCDAudio()));
     886#endif
    881887
    882888        cdmp3b = active_popup->addButton(tr("Create MP3 CD from Playlist"),
    883889                                         this, SLOT(CreateCDMP3()));
     
    920926        active_popup->addLabel(label2);
    921927
    922928        cdmp3b->setEnabled((ratio_MB <= 100.0));
    923         cdaudiob->setEnabled((ratio_sec <= 100.0));
    924         cdaudiob->setEnabled(false);
     929
     930        if (cdaudiob)
     931        {
     932            cdaudiob->setEnabled((ratio_sec <= 100.0));
     933            cdaudiob->setEnabled(false);
     934        }
    925935    }
    926936 
    927937    (void)item_ptr;