Change the way of QDialog show

Change the way of QDialog show from open() to exec().There is a bug
under QT 5.2.1,modal dialog couldn't display in the center of parent
window.
Clean up redundant gitignore information

Clean up redundant gitignore information