Changeset 38501 in vbox
- Timestamp:
- Aug 19, 2011 2:45:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r38479 r38501 891 891 /* Build a filters list out of it. */ 892 892 for (int i = 0; i < formats.size(); ++i) 893 filters << formats.at(i) + " (*." + formats.at(i).toLower() + ")"; 893 { 894 const QString &s = formats.at(i) + " (*." + formats.at(i).toLower() + ")"; 895 /* Check there isn't an entry already (even if it just uses another capitalization) */ 896 if (filters.indexOf(QRegExp(QRegExp::escape(s), Qt::CaseInsensitive)) == -1) 897 filters << s; 898 } 894 899 /* Try to select some common defaults. */ 895 900 QString strFilter;
Note:
See TracChangeset
for help on using the changeset viewer.