Mercurial > pidgin
changeset 20542:d91df8046ec6
"(04:48:00) Alver: finch --version doesn't print the version, and just launches finch"
Fixed.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 19 Sep 2007 08:53:00 +0000 |
parents | a9022965162b |
children | 301c89809b9a |
files | finch/finch.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/finch.c Wed Sep 19 06:22:25 2007 +0000 +++ b/finch/finch.c Wed Sep 19 08:53:00 2007 +0000 @@ -297,6 +297,7 @@ if (opt_version) { /* Translators may want to transliterate the name. It is not to be translated. */ + gnt_quit(); printf("%s %s\n", _("Finch"), VERSION); return 0; } @@ -419,13 +420,13 @@ gnt_init(); - gnt_start(&argc, &argv); - - gnt_main(); + if (gnt_start(&argc, &argv)) { + gnt_main(); #ifdef STANDALONE - purple_core_quit(); + purple_core_quit(); #endif + } return 0; }