Skip to content

Commit

Permalink
Fixes issue sqlitebrowser#605, which was just an indexing error
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed May 25, 2016
1 parent ce325f5 commit 4ed7017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExportCsvDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4ed7017

Please sign in to comment.