BRANCH 4.1:
   fixed the Tear off tab issue by moving the display adjustment call back further up.
   only added a new Untitled tab if tearing off the last tab
Merge branch '4.1' of https://github.com/Southpaw-TACTIC/TACTIC into 4.1