Do not created Untitled document when launched with 'medit filename'

master
Yevgen Muntyan 2007-06-07 15:11:21 -05:00
parent 82558c1d76
commit 780fb97764
1 changed files with 3 additions and 0 deletions

View File

@ -1206,6 +1206,9 @@ moo_editor_open (MooEditor *editor,
bring_to_front = NULL;
}
if (!window)
window = moo_editor_get_active_window (editor);
if (window)
{
doc = moo_edit_window_get_active_doc (window);