summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-03-19 18:05:05 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-03-19 18:05:05 +0100
commit8ac2508eb094459c062d0c31b6367da393b4fa6e (patch)
treea3dd69ae2a2f90e59914e9ede6acdc94e3a6712d /src/scanner.vala
parent05315c3da6d3761ba95f1ae96b852768dd651c25 (diff)
New upstream version 42.0upstream/42.0
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);