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

List:       kde-core-devel
Subject:    Patch for kaboutapplication
From:       Albert Astals Cid <astals11 () terra ! es>
Date:       2004-12-26 23:11:12
Message-ID: 200412270011.13120.astals11 () terra ! es
[Download RAW message or body]

It does not redirect the users to bugs.kde.org for programs that use a 
different mail adrress for reporting bugs, it is useful for external kde 
programs that don't have access to bugs.kde.org

Text and code have been copied from kcmdlineargs

Agree to commit?

Albert

["kaboutapplication.patch" (text/x-diff)]

? kaboutapplication.patch
Index: kaboutapplication.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kaboutapplication.cpp,v
retrieving revision 1.19
diff -u -r1.19 kaboutapplication.cpp
--- kaboutapplication.cpp	2 Nov 2004 15:59:01 -0000	1.19
+++ kaboutapplication.cpp	26 Dec 2004 22:58:46 -0000
@@ -106,7 +106,13 @@
     KAboutContainer *authorPage = addScrolledContainerPage( authorPageTitle );
 
     KActiveLabel* activeLabel = new KActiveLabel( authorPage );
-    activeLabel->setText( i18n( "Please use <a \
href=\"http://bugs.kde.org\">http://bugs.kde.org</a> to report bugs, do not mail the \
authors directly." ) ); +    if (!aboutData->bugAddress().isEmpty())
+    {
+        if (aboutData->bugAddress() == "submit@bugs.kde.org")
+            activeLabel->setText( i18n( "Please use <a \
href=\"http://bugs.kde.org\">http://bugs.kde.org</a> to report bugs, do not mail the \
authors directly." ) ); +        else
+            activeLabel->setText( i18n( "Please use <a href=\"mailto:%1\">%1</a> to \
report bugs, do not mail the authors directly.\n" \
).arg(aboutData->bugAddress()).arg(aboutData->bugAddress()) ); +    }
     authorPage->addWidget( activeLabel );
 
     QValueList<KAboutPerson>::ConstIterator it;



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

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