Add some parens to the ternary
This commit is contained in:
@@ -186,7 +186,7 @@ NewFloppyDialog::onCreate()
|
|||||||
{
|
{
|
||||||
auto filename = ui->fileField->fileName();
|
auto filename = ui->fileField->fileName();
|
||||||
QFileInfo fi(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);
|
ui->fileField->setFileName(filename);
|
||||||
FileType fileType;
|
FileType fileType;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user