Ticket #2744: patch.diff
File patch.diff, 2.0 KB (added by , 17 years ago) |
---|
-
mythmusic/mythmusic/globalsettings.cpp
118 118 return gc; 119 119 }; 120 120 121 static HostCheckBox *BuildDbAfterRip() 122 { 123 HostCheckBox *gc = new HostCheckBox("BuildDbAfterRip"); 124 gc->setLabel(QObject::tr("Rebuild music tree after cd rip.")); 125 gc->setValue(true); 126 gc->setHelpText(QObject::tr("If this setting is unchecked you will need to manually scan for new music.")); 127 return gc; 128 }; 129 130 131 121 132 static HostCheckBox *AutoLookupCD() 122 133 { 123 134 HostCheckBox *gc = new HostCheckBox("AutoLookupCD"); … … 578 589 rippersettings->addChild(NoWhitespace()); 579 590 rippersettings->addChild(PostCDRipScript()); 580 591 rippersettings->addChild(EjectCD()); 581 rippersettings->addChild(OnlyImportNewMusic());582 592 addChild(rippersettings); 583 593 584 594 VerticalConfigurationGroup* encodersettings = new VerticalConfigurationGroup(false); … … 586 596 encodersettings->addChild(EncoderType()); 587 597 encodersettings->addChild(DefaultRipQuality()); 588 598 encodersettings->addChild(Mp3UseVBR()); 599 encodersettings->addChild(OnlyImportNewMusic()); 600 encodersettings->addChild(BuildDbAfterRip()); 589 601 addChild(encodersettings); 590 602 } 591 603 -
mythmusic/mythmusic/main.cpp
684 684 685 685 gContext->addCurrentLocation("ripcd"); 686 686 preMusic(&mdata); 687 if (startRipper()) 687 688 689 if ((startRipper()) && (gContext->GetNumSetting("BuildDbAfterRip",1))) 688 690 { 689 691 // if startRipper returns true, then new files should be present 690 692 // so we should look for them. 691 SearchDir(mdata.startdir); 693 694 SearchDir(mdata.startdir); 692 695 RebuildMusicTree(&mdata); 693 696 } 694 697 postMusic(&mdata);