diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/main_window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index e958c37fb7..aba97e09a1 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -1665,7 +1665,7 @@ void MainWindow::fileAddExtension(QString &file_name, int file_type, wtap_compre /* Get the extension for the compression type we'll be using, or NULL if we won't be compressing it. */ compressed_file_extension = - (compression_type == WTAP_UNCOMPRESSED) ? NULL : ".gz"; + (compression_type == WTAP_UNCOMPRESSED) ? NULL : "gz"; if (extensions_list != NULL) { GSList *extension; @@ -1727,7 +1727,7 @@ void MainWindow::fileAddExtension(QString &file_name, int file_type, wtap_compre * The file is to be compressed, so append the extension for * its compression type. */ - file_name += QString(".gz"); + file_name += QString(".") + compressed_file_extension; } } } |