Changeset 76833 in vbox
- Timestamp:
- Jan 16, 2019 10:51:50 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r76829 r76833 465 465 if ( !strArg.isEmpty() 466 466 && QFile::exists(strArg)) 467 listArgUrls << QUrl::fromLocalFile( strArg);467 listArgUrls << QUrl::fromLocalFile(QFileInfo(strArg).absoluteFilePath()); 468 468 } 469 469 … … 475 475 { 476 476 /* Check which of them has allowed VM extensions: */ 477 const QString &strFile = listArgUrls.at(i).toLocalFile(); 477 const QUrl url = listArgUrls.at(i); 478 const QString strFile = url.toLocalFile(); 478 479 if (VBoxGlobal::hasAllowedExtension(strFile, VBoxFileExts)) 479 480 { … … 486 487 launchMachine(comMachine); 487 488 /* And remove their URLs from the ULR list: */ 488 listArgUrls.removeAll( strFile);489 listArgUrls.removeAll(url); 489 490 } 490 491 }
Note:
See TracChangeset
for help on using the changeset viewer.