From 2de2c24013ce09c0388023d9ceef0fe527840a3c Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Wed, 15 Dec 2010 00:07:23 -0800 Subject: [PATCH] Do not do anything on cancel --- moo/mooedit/mooeditwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moo/mooedit/mooeditwindow.c b/moo/mooedit/mooeditwindow.c index 3d09cb0a..ae160f6b 100644 --- a/moo/mooedit/mooeditwindow.c +++ b/moo/mooedit/mooeditwindow.c @@ -1160,7 +1160,8 @@ action_open (MooEditWindow *window) { MooEdit *active = moo_edit_window_get_active_doc (window); MooEditOpenInfoArray *files = _moo_edit_open_dialog (GTK_WIDGET (window), active); - moo_editor_open_files (window->priv->editor, files, GTK_WIDGET (window), NULL); + if (!moo_edit_open_info_array_is_empty (files)) + moo_editor_open_files (window->priv->editor, files, GTK_WIDGET (window), NULL); moo_edit_open_info_array_free (files); }