Fixed access denided message

pull/132/head
parent 5e3d688f31
commit 08f3fdb204
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -249,10 +249,12 @@ void yon_load_proceed(YON_CONFIG_TYPE type){
case YON_CONFIG_CUSTOM:
char *path = NULL;
path=yon_custom_config_init(GTK_FILE_CHOOSER_ACTION_OPEN);
yon_char_remove_brackets(path);
if (!yon_char_is_empty(path)){
if ((access(path,0)==F_OK&&access(path,4)!=F_OK)){
if (yon_status_box_is_set()){
yon_ubl_status_box_render(ACCESS_DENIED_LABEL(path),BACKGROUND_IMAGE_FAIL_TYPE);
return;
}
}
yon_config_clean();

Loading…
Cancel
Save