[file-roller] new archive dialog: use the tar.gz format if no extension if specified
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] new archive dialog: use the tar.gz format if no extension if specified
- Date: Thu, 9 Aug 2012 06:56:58 +0000 (UTC)
commit 7aac396833f9adeade8cb55e6a006bcef7b3e26d
Author: Paolo Bacchilega <paobac src gnome org>
Date: Tue Aug 7 10:43:42 2012 +0200
new archive dialog: use the tar.gz format if no extension if specified
src/fr-new-archive-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-new-archive-dialog.c b/src/fr-new-archive-dialog.c
index 8ab3bd6..5991b52 100644
--- a/src/fr-new-archive-dialog.c
+++ b/src/fr-new-archive-dialog.c
@@ -171,6 +171,8 @@ _fr_new_archive_dialog_get_format (FrNewArchiveDialog *self,
/* get the format from the extension */
ext = _g_filename_get_extension (uri);
+ if (ext == NULL)
+ ext = DEFAULT_EXTENSION;
idx = GPOINTER_TO_INT (g_hash_table_lookup (self->priv->supported_ext, ext)) - 1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]