QString::fromStdString(format->description()));
if (exts.empty())
- filter += "(*.*)";
+ filter += "(*)";
else
- filter += QString("(*.%1);;%2 (*.*)").arg(
+ filter += QString("(*.%1);;%2 (*)").arg(
QString::fromStdString(join(exts, ", *.")),
tr("All Files"));
// Show the file dialog
const QString file_name = QFileDialog::getOpenFileName(
this, tr("Import File"), dir, tr(
- "%1 files (*.*);;All Files (*.*)").arg(
+ "%1 files (*);;All Files (*)").arg(
QString::fromStdString(format->description())));
if (file_name.isEmpty())
const QString file_name = QFileDialog::getOpenFileName(
this, tr("Open File"), dir, tr(
"Sigrok Sessions (*.sr);;"
- "All Files (*.*)"));
+ "All Files (*)"));
if (!file_name.isEmpty()) {
session_.load_file(file_name);