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,
}
if (defaultSuffix) {
//-- Make sure dot is not present
if (defaultSuffix->startsWith("."))
if (defaultSuffix->startsWith(".")) {
defaultSuffix->remove(0,1);
}
dlg.setDefaultSuffix(*defaultSuffix);
}
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