X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpreferences.C;h=a3f3b391f3062f05fe988b9ec14c0943d9b38680;hb=b0adaf11e855fd84af935d879848467a957d6c67;hp=5d4692204ed20922388c7dffbb36867778020301;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/preferences.C b/cinelerra-5.1/cinelerra/preferences.C index 5d469220..a3f3b391 100644 --- a/cinelerra-5.1/cinelerra/preferences.C +++ b/cinelerra-5.1/cinelerra/preferences.C @@ -372,8 +372,8 @@ int Preferences::load_defaults(BC_Hash *defaults) shbtn_prefs.remove_all_objects(); int shbtns_total = defaults->get("SHBTNS_TOTAL", -1); if( shbtns_total < 0 ) { - shbtn_prefs.append(new ShBtnPref("manual", "firefox file:///$CINELERRA_PATH/manual.pdf", 0)); - shbtn_prefs.append(new ShBtnPref("online help", "firefox http://cinelerra.org/help.php/", 0)); +// shbtn_prefs.append(new ShBtnPref("manual", "firefox file:///$CINELERRA_PATH/manual.pdf", 0)); + shbtn_prefs.append(new ShBtnPref("online help", "firefox https://cinelerra-cv.org/docs/cinelerra_cv_manual_en.html", 0)); shbtns_total = 0; } for( int i=0; ipath); - int result = access(path, R_OK); + int result = !access(path, R_OK) ? 0 : -1; if( !result && asset->format == FILE_MPEG ) { - char source_filename[BCTEXTLEN]; - char index_filename[BCTEXTLEN]; + char source_filename[BCTEXTLEN], index_filename[BCTEXTLEN]; IndexFile::get_index_filename(source_filename, - index_directory, index_filename, - asset->path, ".toc"); - struct stat st; - if( !access(index_filename, R_OK) && - !stat(index_filename,&st) && st.st_size > 0 ) + index_directory, index_filename, asset->path, ".toc"); strcpy(path, index_filename); + if( access(path, R_OK) ) + result = 1; } +// result = 0, asset->path/toc exist, -1 no asset, 1 no toc return result; }