[PATCH 2/3] Pre-configured imports in Import Dive Log File -> CSV should also set the field separator

Dirk Hohndel dirk at hohndel.org
Tue Jan 14 06:20:46 UTC 2014


Badly whitespace damaged. I cleaned it up and applied it

Please set

git config --global diff.color=auto

and check your commits with git log -p or git show. That will make some
of the whitespace damage visible. Best is to use an editor / IDE that
you can train to indent with tabs :-)

/D

On Mon, 2014-01-13 at 22:11 -0200, Rodrigo Severo wrote:
> Pre-configured imports in Import Dive Log File for CSV files should also set the pre-defined
> field separator.
> 
> Signed-off-by:Rodrigo Severo <rodrigo at fabricadeideias.com>
> ---
>  qt-ui/divelogimportdialog.cpp | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
> index 55907a3..ebf7508 100644
> --- a/qt-ui/divelogimportdialog.cpp
> +++ b/qt-ui/divelogimportdialog.cpp
> @@ -90,6 +90,11 @@ void DiveLogImportDialog::on_knownImports_currentIndexChanged(int index)
>  	SET_VALUE_AND_CHECKBOX(CSVpo2, po2CheckBox, CSVApps[index].po2);
>  	SET_VALUE_AND_CHECKBOX(CSVcns, cnsCheckBox, CSVApps[index].cns);
>  	SET_VALUE_AND_CHECKBOX(CSVstopdepth, stopdepthCheckBox, CSVApps[index].stopdepth);
> +        ui->CSVSeparator->blockSignals(true);
> +        int separator_index = ui->CSVSeparator->findText(CSVApps[index].separator);
> +        if (separator_index != -1)
> +            ui->CSVSeparator->setCurrentIndex(separator_index);
> +        ui->CSVSeparator->blockSignals(false);
>  }
>  
>  void DiveLogImportDialog::unknownImports(bool arg1)




More information about the subsurface mailing list