Kaydet (Commit) 94460208 authored tarafından Enrico Tröger's avatar Enrico Tröger

fixed wrong setting of filetype when using "All files" as filetype


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@410 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst fd0cfdf7
...@@ -370,7 +370,7 @@ void document_new_file(filetype *ft) ...@@ -370,7 +370,7 @@ void document_new_file(filetype *ft)
g_free(template); g_free(template);
doc_list[idx].encoding = g_strdup("UTF-8"); doc_list[idx].encoding = g_strdup("UTF-8");
document_set_filetype(idx, (ft) ? ft : filetypes[GEANY_FILETYPES_ALL]); document_set_filetype(idx, ft);
utils_set_window_title(idx); utils_set_window_title(idx);
utils_build_show_hide(idx); utils_build_show_hide(idx);
utils_update_tag_list(idx, FALSE); utils_update_tag_list(idx, FALSE);
......
...@@ -541,8 +541,7 @@ gint main(gint argc, gchar **argv) ...@@ -541,8 +541,7 @@ gint main(gint argc, gchar **argv)
app->opening_session_files = FALSE; app->opening_session_files = FALSE;
// open a new file if no other file was opened // open a new file if no other file was opened
if (gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)) == 0) if (gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)) == 0) document_new_file(NULL);
document_new_file(filetypes[GEANY_FILETYPES_ALL]);
utils_close_buttons_toggle(); utils_close_buttons_toggle();
utils_save_buttons_toggle(FALSE); utils_save_buttons_toggle(FALSE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment