- /* Update the menus as well, the account name could be changed */
- update_menus (MODEST_MAIN_WINDOW (user_data));
+ /* Update the menus as well, the account name could be
+ changed. Transport accounts and local ones (MMC and the
+ Local folders account do now cause menu changes */
+ if (TNY_IS_STORE_ACCOUNT (account) &&
+ modest_tny_folder_store_is_remote (TNY_FOLDER_STORE (account)))
+ update_menus (MODEST_MAIN_WINDOW (user_data));