Changeset 81737 in vbox for trunk/src/VBox
- Timestamp:
- Nov 7, 2019 4:10:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIEmptyFilePathSelector.cpp
r80955 r81737 217 217 QString path = mPath; 218 218 219 /* Check whether we have file-name information available: */ 220 const QString strFileName = QFileInfo(path).fileName(); 221 219 222 /* Preparing initial directory. */ 220 223 QString initDir = path.isNull() ? mHomeDir : … … 222 225 if (initDir.isNull()) 223 226 initDir = mHomeDir; 227 228 /* Append file-name information if any: */ 229 if (!strFileName.isEmpty()) 230 initDir = QDir(initDir).absoluteFilePath(strFileName); 224 231 225 232 switch (mMode)
Note:
See TracChangeset
for help on using the changeset viewer.