From 7baf8f3b03464fe219af5b0b68624f607fbb1ad9 Mon Sep 17 00:00:00 2001 From: ann0see Date: Sun, 15 Nov 2026 18:43:01 +0100 Subject: [PATCH] Suggest a file name with the settings suffix when saving the mixer setup The iOS file dialog takes the suggested file name from the path passed to QFileDialog::getSaveFileName() and falls back to "Untitled" without an extension. The load dialog filters for *.jch, so a setup saved on iOS could not be loaded again without renaming the file first. Pass a default name that carries the suffix. The save dialog hides the known suffix from the text field, so the user still sees "ChannelSetup", but the file is written as ChannelSetup.jch. Co-authored-by: Peter L Jones --- src/clientdlg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index 2c7c35f02c..ad158b0478 100644 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -807,7 +807,11 @@ void CClientDlg::OnLoadChannelSetup() void CClientDlg::OnSaveChannelSetup() { - QString strFileName = QFileDialog::getSaveFileName ( this, tr ( "Select Channel Setup File" ), "", QString ( "*." ) + MIX_SETTINGS_FILE_SUFFIX ); + QString strFileName = QFileDialog::getSaveFileName ( this, + tr ( "Select Channel Setup File" ), + tr ( "ChannelSetup", "Default Channel Setup file name without suffix" ) + QString ( "." ) + + MIX_SETTINGS_FILE_SUFFIX, + QString ( "*." ) + MIX_SETTINGS_FILE_SUFFIX ); if ( !strFileName.isEmpty() ) {