We updated texmaker to 5.0.2 in TW recently, and this no longer seems to be an issue (tested by myself). If it still is in your case, please feel free to reopen this bug.