From 4ed7017eca2906314a2eb5c78674d857144ad832 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Wed, 25 May 2016 09:28:39 +0100 Subject: [PATCH] Fixes issue #605, which was just an indexing error --- src/ExportCsvDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ExportCsvDialog.cpp b/src/ExportCsvDialog.cpp index a4cf533c..b889fd9b 100644 --- a/src/ExportCsvDialog.cpp +++ b/src/ExportCsvDialog.cpp @@ -249,7 +249,7 @@ void ExportCsvDialog::setQuoteChar(const QChar& c) int index = combo->findText(c); if(index == -1) { - combo->setCurrentIndex(combo->count()); + combo->setCurrentIndex(combo->count() - 1); ui->editCustomQuote->setText(c); } else @@ -277,7 +277,7 @@ void ExportCsvDialog::setSeparatorChar(const QChar& c) int index = combo->findText(sText); if(index == -1) { - combo->setCurrentIndex(combo->count()); + combo->setCurrentIndex(combo->count() - 1); ui->editCustomSeparator->setText(c); } else