diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-29 02:35:57 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-29 02:35:57 (EDT) |
commit | 3e4a6dba323900c7731598d2696799d16b118edd (patch) | |
tree | 82be7c14e04abccbca96acbd86e7c32d7131ecfb /src | |
parent | 9dbdc3d00a233b02de995f8c782f39f1ec521740 (diff) | |
download | marquee-3e4a6dba323900c7731598d2696799d16b118edd.zip marquee-3e4a6dba323900c7731598d2696799d16b118edd.tar.gz marquee-3e4a6dba323900c7731598d2696799d16b118edd.tar.bz2 |
Revert "MqWebView: Add a "." to save name if missing on type change"
This reverts commit 9dbdc3d00a233b02de995f8c782f39f1ec521740.
Diffstat (limited to 'src')
-rw-r--r-- | src/web-view.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/web-view.c b/src/web-view.c index 71fad86..eb48716 100644 --- a/src/web-view.c +++ b/src/web-view.c @@ -1009,11 +1009,7 @@ save_type_changed_cb(GtkComboBox *combo_box, GtkFileChooser *chooser) active_id = gtk_combo_box_get_active_id(combo_box); if (g_strcmp0(active_id, "html") == 0) { - if (!extension[0]) { - new_name = g_strconcat(name, ".html", NULL); - gtk_file_chooser_set_current_name(chooser, new_name); - g_free(new_name); - } else if (!extension_is_html(extension)) { + if (!extension_is_html(extension)) { /* Extension is not "htm" or "html". */ extension[0] = '\0'; /* Remove extension. */ new_name = g_strconcat(name, "html", NULL); @@ -1021,11 +1017,7 @@ save_type_changed_cb(GtkComboBox *combo_box, GtkFileChooser *chooser) g_free(new_name); } } else if (g_strcmp0(active_id, "mhtml") == 0) { - if (!extension[0]) { - new_name = g_strconcat(name, ".mhtml", NULL); - gtk_file_chooser_set_current_name(chooser, new_name); - g_free(new_name); - } else if (!extension_is_mhtml(extension)) { + if (!extension_is_mhtml(extension)) { /* Extension is not "mht", "mhtm", or "mhtml". */ extension[0] = '\0'; /* Remove extension. */ new_name = g_strconcat(name, "mhtml", NULL); |