[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    NAG: kdelibs/kdecore/kaccel.cpp
From:       Alfons Hoogervorst <alfons () proteus ! demon ! nl>
Date:       2002-09-29 13:14:58
[Download RAW message or body]

Lo,

QT 3.1b-ism. Pretty sure this will be fixed, but a nag patch anyway.

Bye.

-- 
Por qué has buscado como un ángel ciego, golpeándose 
contra las puertas obscuras? - Pablo Neruda

["kaccel.cpp.patch" (text/plain)]

Index: kdecore/kaccel.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdecore/kaccel.cpp,v
retrieving revision 1.131
diff -u -r1.131 kaccel.cpp
--- kdecore/kaccel.cpp	29 Sep 2002 09:28:40 -0000	1.131
+++ kdecore/kaccel.cpp	29 Sep 2002 12:49:58 -0000
@@ -156,7 +156,11 @@
 		// This is needed for when there are multiple actions
 		//  with the same shortcut where all but one is disabled.
 		// pMenu->count() also counts the menu title, so one shortcut will give count = 2.
+#if QT_VERSION >= 0x030100
 		if( pMenu->count() == 2 && pMenu->accel(1).isEmpty() ) {
+#else
+		if( pMenu->count() == 2 && !pMenu->accel(1) ) {
+#endif
 			int iAction = pMenu->idAt(1);
 			slotMenuActivated( iAction );
 		} else {

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic