Changeset 92031 in vbox
- Timestamp:
- Oct 25, 2021 1:19:48 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilePathSelector.cpp
r91681 r92031 620 620 removeItem(count() - 1); 621 621 622 623 622 if (enmMediumType != m_enmRecentMediaListType) 624 623 return; … … 640 639 } 641 640 642 if (recentMedia.isEmpty()) 641 /* Remove the media which is not there not not readable: */ 642 QStringList existingMedia; 643 foreach (QString strMediaPath, recentMedia) 644 { 645 QFileInfo info(strMediaPath); 646 if (info.exists() && info.isReadable()) 647 existingMedia << strMediaPath; 648 } 649 if (existingMedia.isEmpty()) 643 650 return; 644 651 645 652 insertSeparator(m_iRecentListSeparatorPosition); 646 foreach (const QString strPath, recentMedia)653 foreach (const QString strPath, existingMedia) 647 654 addItem(strPath); 648 655 }
Note:
See TracChangeset
for help on using the changeset viewer.