Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Libraries
Commits
4741bdcc
Commit
4741bdcc
authored
Mar 26, 2013
by
Lukáš Tinkl
Browse files
recognize additional battery types
BUG: 317400 FIXED-IN: 4.10.2
parent
304ac511
Changes
1
Hide whitespace changes
Inline
Side-by-side
solid/solid/backends/upower/upowerdevice.cpp
View file @
4741bdcc
...
...
@@ -83,7 +83,7 @@ bool UPowerDevice::queryDeviceInterface(const Solid::DeviceInterface::Type& type
case
Solid
::
DeviceInterface
::
GenericInterface
:
return
true
;
case
Solid
::
DeviceInterface
::
Battery
:
return
(
uptype
==
2
||
uptype
==
3
);
return
(
uptype
==
2
||
uptype
==
3
||
uptype
==
5
||
uptype
==
6
);
case
Solid
::
DeviceInterface
::
AcAdapter
:
return
(
uptype
==
1
);
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment