Skip to content

Commit

Permalink
Merge pull request sqlitebrowser#609 from justinclift/issue605
Browse files Browse the repository at this point in the history
Fixes issue sqlitebrowser#605, which was just an indexing error
  • Loading branch information
justinclift committed May 25, 2016
2 parents ce325f5 + 4ed7017 commit 994bc37
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 994bc37

Please sign in to comment.