- Timestamp:
- Feb 13, 2007 2:48:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxNewHDWzd.ui.h
r382 r875 273 273 { 274 274 QString name = QDir::convertSeparators (leName->text()); 275 if (QFileInfo (name).extension().isEmpty()) 275 276 /* remove all trailing dots to avoid multiple dots before .vdi */ 277 int len; 278 while (len = name.length(), len > 0 && name [len - 1] == '.') 279 name.truncate (len - 1); 280 281 QString ext = QFileInfo (name).extension(); 282 /* compare against the proper case */ 283 #if defined (Q_OS_LINUX) 284 #elif defined (Q_OS_WIN) || defined (Q_OS_OS2) 285 ext = ext.lower(); 286 #else 287 #error Port me! 288 #endif 289 290 if (ext != "vdi") 276 291 name += ".vdi"; 292 277 293 return name; 278 294 }
Note:
See TracChangeset
for help on using the changeset viewer.