Allow selecting all files on CSV import

This allows user to view any file on CSV import dialog, not only the
ones ending with .csv. Of course, the default still shows only the .csv
files and user needs to change the filter to view the rest.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-12-24 10:27:14 +02:00 committed by Dirk Hohndel
parent a2bf4e76e4
commit e0bdf45539

View file

@ -68,7 +68,7 @@ void CSVImportDialog::on_buttonBox_accepted()
void CSVImportDialog::on_CSVFileSelector_clicked()
{
QString filename = QFileDialog::getOpenFileName(this, tr("Open CSV Log File"), ".", tr("CSV Files (*.csv)"));
QString filename = QFileDialog::getOpenFileName(this, tr("Open CSV Log File"), ".", tr("CSV Files (*.csv);;All Files(*)"));
ui->CSVFile->setText(filename);
if (filename.isEmpty())
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);