dafo:fix the bug:crash when open SessionDialog.
Merge branch 'master' of https://github.com/mogutt/TTWinClient