QTfrontend/ui/widget/selectWeapon.cpp
changeset 13320 b024cf25bde1
parent 13315 3546bb36c8fb
child 13555 43b72629d453
--- a/QTfrontend/ui/widget/selectWeapon.cpp	Thu Apr 12 14:52:47 2018 +0200
+++ b/QTfrontend/ui/widget/selectWeapon.cpp	Thu Apr 12 16:56:06 2018 +0200
@@ -123,12 +123,10 @@
         }
         qDebug("%d weapon scheme(s) imported.", imported);
     } else {
-        QStringList schemes = QDir(cfgdir->absolutePath() + "/Schemes/Ammo").entryList();
+        QStringList schemes = QDir(cfgdir->absolutePath() + "/Schemes/Ammo").entryList(QDir::Files);
 
         for(int i = 0; i < schemes.size(); i++)
         {
-            if (schemes[i] == "." || schemes[i] == "..") continue;
-
             QFile file(cfgdir->absolutePath() + "/Schemes/Ammo/" + schemes[i]);
             QString config;
             if (file.open(QIODevice::ReadOnly)) {