summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-03-20 09:13:50 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-03-20 09:13:50 +0100
commitaafaa7c3ff1f88dadbad34559adab7b35be8542b (patch)
tree11f3ff35af220dd659d42e5f87d29b5d5ca073cb /src/scanner.vala
parent055f6f3e01bb718bfdd61331e1b13b0cdba6d718 (diff)
parente01ac9786891513c1cb628ca0a0374436057cc3b (diff)
Merge branch 'release/debian/42.0-1'debian/42.0-1
Diffstat (limited to 'src/scanner.vala')
-rw-r--r--src/scanner.vala4
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);