Commit 0e4d7b851590d76331c2365797e2bfa571619652
1 parent
38f972dc
Exists in
master
and in
2 other branches
Fixing empty session name on "save-session-preferences" dialog.
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
src/objects/actions/save.c
| ... | ... | @@ -143,6 +143,16 @@ |
| 143 | 143 | |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | + // Load current session name | |
| 147 | + { | |
| 148 | + g_autofree gchar * session_name = g_strdup(v3270_get_session_name(terminal)); | |
| 149 | + gchar *ptr = strrchr(session_name,':'); | |
| 150 | + if(ptr) | |
| 151 | + *ptr = 0; | |
| 152 | + gtk_entry_set_text(GTK_ENTRY(inputs[0]),session_name); | |
| 153 | + } | |
| 154 | + | |
| 155 | + // Load current file name | |
| 146 | 156 | { |
| 147 | 157 | g_autofree gchar * session_filename = v3270_key_file_build_filename(terminal); |
| 148 | 158 | gtk_entry_set_text(GTK_ENTRY(inputs[1]),session_filename); | ... | ... |