diff options
author | Rainer Keller <rainer.keller@theqtcompany.com> | 2015-06-16 15:31:22 +0200 |
---|---|---|
committer | Rainer Keller <rainer.keller@theqtcompany.com> | 2015-06-18 09:19:47 +0300 |
commit | c78601d6d5f5f1f6729f1279f0dccc4d9e6d32ce (patch) | |
tree | 11f7a104606fd3422b35cf4b899468e9e7bd6c95 /src/b2qt-flashing-wizard | |
parent | 12e2c1aa43d704492204ba305b160aa694a83cd9 (diff) |
b2qt-flashing-wizard: Filter out floppy and CD-Rom drives from device list
Change-Id: Ibb54e0f1e45342d6012760c07793cf46df706fd4
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'src/b2qt-flashing-wizard')
-rw-r--r-- | src/b2qt-flashing-wizard/disk_page.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/b2qt-flashing-wizard/disk_page.cpp b/src/b2qt-flashing-wizard/disk_page.cpp index 4435d33..c0d1a3a 100644 --- a/src/b2qt-flashing-wizard/disk_page.cpp +++ b/src/b2qt-flashing-wizard/disk_page.cpp @@ -127,7 +127,8 @@ void DiskPage::updateDeviceList() iter.next(); const DiskInfo &di = iter.value(); - if (di.logicalBlockSize == 0 || di.blocks == 0 || di.name.startsWith("ram")) { + if (di.logicalBlockSize == 0 || di.blocks == 0 || di.name.startsWith("ram") + || di.name.startsWith("sr") || di.name.startsWith("fd") { iter.remove(); continue; } |