diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-03-19 18:05:05 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-03-19 18:05:05 +0100 |
commit | 8ac2508eb094459c062d0c31b6367da393b4fa6e (patch) | |
tree | a3dd69ae2a2f90e59914e9ede6acdc94e3a6712d /src/scanner.vala | |
parent | 05315c3da6d3761ba95f1ae96b852768dd651c25 (diff) |
New upstream version 42.0upstream/42.0
Diffstat (limited to 'src/scanner.vala')
-rw-r--r-- | src/scanner.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scanner.vala b/src/scanner.vala index 809ba6c..495ee9d 100644 --- a/src/scanner.vala +++ b/src/scanner.vala @@ -367,6 +367,10 @@ public class Scanner : Object var devices = new List<ScanDevice> (); for (var i = 0; device_list[i] != null; i++) { + /* Virtual devices tend to not be scanners. Skip them. */ + if (device_list[i].type == "virtual device") + continue; + debug ("Device: name=\"%s\" vendor=\"%s\" model=\"%s\" type=\"%s\"", device_list[i].name, device_list[i].vendor, device_list[i].model, device_list[i].type); |