summaryrefslogtreecommitdiff
path: root/src/scanner.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-03-19 18:05:09 +0100
committerJörg Frings-Fürst <debian@jff.email>2022-03-19 18:05:09 +0100
commite2af6e905a98b8b90b0504bc8f245733196dd808 (patch)
treeed6425480e22209291077ee018858e2a7c9e26f9 /src/scanner.vala
parent14afa21f4a428f9a6a5788dc1fb8a3507a42d02f (diff)
parent8ac2508eb094459c062d0c31b6367da393b4fa6e (diff)
Update upstream source from tag 'upstream/42.0'
Update to upstream version '42.0' with Debian dir baa60a251498352959c048578d8f76023260a87e
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);