Add some parens to the ternary

This commit is contained in:
cold-brewed
2022-12-02 17:26:58 -05:00
parent 702ca98657
commit ae60078d26

View File

@@ -186,7 +186,7 @@ NewFloppyDialog::onCreate()
{
auto filename = ui->fileField->fileName();
QFileInfo fi(filename);
filename = (fi.isRelative() && !fi.filePath().isEmpty()) ? usr_path + fi.filePath() : fi.filePath();
filename = (fi.isRelative() && !fi.filePath().isEmpty()) ? (usr_path + fi.filePath()) : fi.filePath();
ui->fileField->setFileName(filename);
FileType fileType;