diff options
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r-- | source/blender/editors/space_file/file_intern.h | 2 | ||||
-rw-r--r-- | source/blender/editors/space_file/folder_history.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_file/file_intern.h b/source/blender/editors/space_file/file_intern.h index 676fdff268e..eac72af00ab 100644 --- a/source/blender/editors/space_file/file_intern.h +++ b/source/blender/editors/space_file/file_intern.h @@ -192,7 +192,7 @@ void folderlist_free(struct ListBase *folderlist); void folderlist_popdir(struct ListBase *folderlist, char *dir); void folderlist_pushdir(struct ListBase *folderlist, const char *dir); const char *folderlist_peeklastdir(struct ListBase *folderlist); -int folderlist_clear_next(struct SpaceFile *sfile); +bool folderlist_clear_next(struct SpaceFile *sfile); void folder_history_list_ensure_for_active_browse_mode(struct SpaceFile *sfile); void folder_history_list_free(struct SpaceFile *sfile); diff --git a/source/blender/editors/space_file/folder_history.cc b/source/blender/editors/space_file/folder_history.cc index 3e410901347..1cb8fa279c5 100644 --- a/source/blender/editors/space_file/folder_history.cc +++ b/source/blender/editors/space_file/folder_history.cc @@ -88,25 +88,25 @@ const char *folderlist_peeklastdir(ListBase *folderlist) return folder->foldername; } -int folderlist_clear_next(struct SpaceFile *sfile) +bool folderlist_clear_next(struct SpaceFile *sfile) { const FileSelectParams *params = ED_fileselect_get_active_params(sfile); struct FolderList *folder; /* if there is no folder_next there is nothing we can clear */ if (BLI_listbase_is_empty(sfile->folders_next)) { - return 0; + return false; } /* if previous_folder, next_folder or refresh_folder operators are executed * it doesn't clear folder_next */ folder = static_cast<FolderList *>(sfile->folders_prev->last); if ((!folder) || (BLI_path_cmp(folder->foldername, params->dir) == 0)) { - return 0; + return false; } /* eventually clear flist->folders_next */ - return 1; + return true; } void folderlist_free(ListBase *folderlist) |