diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-08-21 09:06:06 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-08-21 09:06:06 +0000 |
commit | 03711542678946b2b7f6fad212d3549847c7cdb7 (patch) | |
tree | 758034c6e812979500a6e5ce0a6d66917147c54d /sysutils | |
parent | ae2d7c6b87a3722b868866f872302f000cf89a26 (diff) | |
download | ports-03711542678946b2b7f6fad212d3549847c7cdb7.tar.gz ports-03711542678946b2b7f6fad212d3549847c7cdb7.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/klaptopdaemon/files/extrapatch-acpi-support | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sysutils/klaptopdaemon/files/extrapatch-acpi-support b/sysutils/klaptopdaemon/files/extrapatch-acpi-support index 71f1a7cb65ef..915d452907fe 100644 --- a/sysutils/klaptopdaemon/files/extrapatch-acpi-support +++ b/sysutils/klaptopdaemon/files/extrapatch-acpi-support @@ -1,39 +1,5 @@ --- klaptopdaemon/portable.cpp.orig 2007-09-14 18:54:04.000000000 +0400 +++ klaptopdaemon/portable.cpp 2007-09-14 18:54:18.000000000 +0400 -@@ -1,7 +1,7 @@ - /* - * portable.cpp - * -- * $Id: portable.cpp 629304 2007-02-02 09:55:28Z dfaure $ -+ * $Id: portable.cpp 540996 2006-05-15 09:55:42Z mueller $ - * - * Copyright (c) 1999 Paul Campbell <paul@taniwha.com> - * -@@ -1957,19 +1957,19 @@ - laptop_portable::get_button(LaptopButton l) // true if a button is pressed - { - if (::has_acpi()) { -- QString name; -+ QString *name=0; - switch (l) { - case LidButton: -- name = acpi_lid_name; -+ name = &acpi_lid_name; - break; - case PowerButton: -- name = acpi_power_name; -+ name = &acpi_power_name; - break; - default: - break; - } -- if (!name.isEmpty()) { -- QFile f(name); -+ if (name) { -+ QFile f(*name); - if (f.open(IO_ReadOnly)) { - while (!f.atEnd()) { - QString l; @@ -2001,7 +2001,488 @@ return(0); } |