From e0bdf455396744f524c8392e345ab9100bc1f451 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Tue, 24 Dec 2013 10:27:14 +0200 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- qt-ui/csvimportdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/csvimportdialog.cpp b/qt-ui/csvimportdialog.cpp index b3392f421..3182d9c31 100644 --- a/qt-ui/csvimportdialog.cpp +++ b/qt-ui/csvimportdialog.cpp @@ -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);