* switch statement would need to be run. */
mutt_folder_hook(buf, m ? m->name : NULL);
- const int flags = (C_ReadOnly || (op == OP_MAIN_CHANGE_FOLDER_READONLY)
+ int flags = MUTT_OPEN_NO_FLAGS;
+ if (C_ReadOnly || (op == OP_MAIN_CHANGE_FOLDER_READONLY))
+ flags = MUTT_READONLY;
#ifdef USE_NOTMUCH
- || (op == OP_MAIN_VFOLDER_FROM_QUERY_READONLY)
+ if (op == OP_MAIN_VFOLDER_FROM_QUERY_READONLY)
+ flags = MUTT_READONLY;
#endif
- ) ?
- MUTT_READONLY :
- MUTT_OPEN_NO_FLAGS;
bool free_m = false;
if (!m)