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

List:       kopete-devel
Subject:    [kopete-devel] [PATCH] Fix the gadu plugin set description
From:       Jakub Grandys <pennguin () gmail ! com>
Date:       2008-08-26 20:17:13
Message-ID: 200808262217.13403.pennguin () gmail ! com
[Download RAW message or body]

Hello,

I have fixed the  163541 bug, small but annoying. The patch is attached, 
because I'm quite new to 
C++ programming and KDE so can anyone look on it? Problem was bad id's 
returned from gaduaway ui where not in sync with predefined values for statuses 
in libgadu.h (the call to this ui is from GaduAccount::slotDescription). 
Unfortunately I didn't have any other idea to fix this than as in 
I hope I'm clear enough ;) This fix works for me of course!

Jakub Grandys


["gadugadu.description.patch" (text/x-patch)]

Index: kopete/protocols/gadu/gaduaway.cpp
===================================================================
--- kopete/protocols/gadu/gaduaway.cpp	(wersja 852862)
+++ kopete/protocols/gadu/gaduaway.cpp	(kopia robocza)
@@ -72,7 +72,18 @@
 int
 GaduAway::status() const
 {
-	return ui_->statusGroup_->id( ui_->statusGroup_->selected() );
+	switch( ui_->statusGroup_->id( ui_->statusGroup_->selected() )) {
+		case 3:
+			return GG_STATUS_NOT_AVAIL_DESCR;
+		case 2:
+			return GG_STATUS_INVISIBLE_DESCR;
+		case 1:
+			return GG_STATUS_BUSY_DESCR;
+		case 0:
+			return GG_STATUS_AVAIL_DESCR;
+		default:
+			return GG_STATUS_NOT_AVAIL_DESCR;
+	}
 }
 
 QString


_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel


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

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