Commit 3e44cd1b authored by dogmaphobic's avatar dogmaphobic

Fixing a case of an elusive, braceless conditional.

parent d7c89e95
...@@ -109,8 +109,9 @@ QString QGCFileDialog::getSaveFileName(QWidget* parent, ...@@ -109,8 +109,9 @@ QString QGCFileDialog::getSaveFileName(QWidget* parent,
} }
if (defaultSuffix) { if (defaultSuffix) {
//-- Make sure dot is not present //-- Make sure dot is not present
if (defaultSuffix->startsWith(".")) if (defaultSuffix->startsWith(".")) {
defaultSuffix->remove(0,1); defaultSuffix->remove(0,1);
}
dlg.setDefaultSuffix(*defaultSuffix); dlg.setDefaultSuffix(*defaultSuffix);
} }
if (dlg.exec()) { if (dlg.exec()) {
......
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