diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-07 09:53:29 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-07 09:53:29 +0000 |
commit | cc106602861def0fbd4f50154cb36e34921c2367 (patch) | |
tree | b9e340673217838b08306271444810ef72b46a3d /src/mainwindow.c | |
parent | 4335ce353df9f818dd7c58f86a5a239ebdf841a1 (diff) |
added '--exit' command line option.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@719 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 7f6c28ac..c1dfaed0 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1279,7 +1279,10 @@ static void main_window_show_cur_account(MainWindow *mainwin) MainWindow *main_window_get(void) { - return (MainWindow *)mainwin_list->data; + if (mainwin_list) + return (MainWindow *)mainwin_list->data; + else + return NULL; } GtkWidget *main_window_get_folder_window(MainWindow *mainwin) @@ -2735,7 +2738,7 @@ static void app_exit_cb(MainWindow *mainwin, guint action, GtkWidget *widget) manage_window_focus_in(mainwin->window, NULL, NULL); } - app_will_exit(widget, mainwin); + app_will_exit(FALSE); } static void search_cb(MainWindow *mainwin, guint action, GtkWidget *widget) |