Checking of segue type.
Merge pull request #8 from mchinyakov/master

Checking of segue type.