laullon/gitx — pull request #154 by lukeman (2012-02-19 01:48:56+00:00)
Title: fixes open dialog from appearing when opening a repo from the cli

On Lion an Open dialog appears when GitX is opened from the cli as `hasOpenedDocuments` no longer seems to account for when the application is invoked with a repo URL. This bug affects all Lion users who have "Show Open panel on launch" enabled (which is the default).

To solve this, I moved the open dialog logic out of `applicationDidFinishLaunching` and into `applicationShouldOpenUntitledFile`. This has been tested on OS X Lion, but I have not been able to test on previous versions yet.

This fixes #152 and #151 and possibly others.