Commit 0262ce21 authored by dogmaphobic's avatar dogmaphobic

Removing unnecessary double semi-colon from single type filters in file dialogs

parent 7d4831d0
......@@ -836,7 +836,7 @@ void MainWindow::createCustomWidget()
void MainWindow::loadCustomWidget()
{
QString widgetFileExtension(".qgw");
QString fileName = QGCFileDialog::getOpenFileName(this, tr("Specify Widget File Name"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), tr("QGroundControl Widget (*%1);;").arg(widgetFileExtension));
QString fileName = QGCFileDialog::getOpenFileName(this, tr("Specify Widget File Name"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), tr("QGroundControl Widget (*%1)").arg(widgetFileExtension));
if (fileName != "") loadCustomWidget(fileName);
}
void MainWindow::loadCustomWidget(const QString& fileName, int view)
......
......@@ -576,7 +576,7 @@ void QGCToolWidget::exportWidget()
QString fileName = QGCFileDialog::getSaveFileName(
this, tr("Specify File Name"),
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("QGroundControl Widget (*%1);;").arg(widgetFileExtension),
tr("QGroundControl Widget (*%1)").arg(widgetFileExtension),
0,0,
&defaultSuffix);
//-- Note that if the user enters foo.bar, this will end up foo.bar.qgw
......@@ -591,7 +591,7 @@ void QGCToolWidget::exportWidget()
void QGCToolWidget::importWidget()
{
const QString widgetFileExtension(".qgw");
QString fileName = QGCFileDialog::getOpenFileName(this, tr("Specify File Name"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), tr("QGroundControl Widget (*%1);;").arg(widgetFileExtension));
QString fileName = QGCFileDialog::getOpenFileName(this, tr("Specify File Name"), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation), tr("QGroundControl Widget (*%1)").arg(widgetFileExtension));
loadSettings(fileName);
}
......
......@@ -437,7 +437,7 @@ QString LinechartWidget::getLogSaveFilename()
QString fileName = QGCFileDialog::getSaveFileName(this,
tr("Specify log file name"),
QStandardPaths::writableLocation(QStandardPaths::DesktopLocation),
tr("Logfile (*.log);;"),
tr("Logfile (*.log)"),
0,0,
&defaultSuffix);
return fileName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment