]> sigrok.org Git - pulseview.git/commitdiff
permit file names not containing dots on import
authorSergey Alirzaev <redacted>
Tue, 6 Jun 2017 01:23:24 +0000 (04:23 +0300)
committerUwe Hermann <redacted>
Tue, 6 Jun 2017 08:23:40 +0000 (10:23 +0200)
pv/toolbars/mainbar.cpp

index 4f5cd158ed0922c2842a5349697ab25c0cec6030..114e6fd72cb7c5ac44d71577f7b491b0085800b6 100644 (file)
@@ -626,9 +626,9 @@ void MainBar::export_file(shared_ptr<OutputFormat> format, bool selection_only)
                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"));
 
@@ -679,7 +679,7 @@ void MainBar::import_file(shared_ptr<InputFormat> format)
        // 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())
@@ -757,7 +757,7 @@ void MainBar::on_actionOpen_triggered()
        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);