kdevelop

Andras Mantia amantia at kde.org
Tue Mar 23 14:15:07 UTC 2004


CVS commit by amantia: 

Display the exit status messages (eg. Success). Might need to be backported.
"Fix" --enable-final compilation in languages/ada.

CCMAIL: kdevelop-devel at kdevelop.org


  M +2 -0      languages/ada/Makefile.am   1.11
  M +7 -5      parts/outputviews/makeitem.cpp   1.12


--- kdevelop/languages/ada/Makefile.am  #1.10:1.11
@@ -36,2 +36,4 @@
 rcdir = $(kde_datadir)/kdevadasupport
 rc_DATA = kdevadasupport.rc
+
+KDE_OPTIONS = nofinal

--- kdevelop/parts/outputviews/makeitem.cpp  #1.11:1.12
@@ -14,4 +14,5 @@
 #include <qstylesheet.h>
 
+#include <kdebug.h>
 #include <klocale.h>
 
@@ -123,13 +124,14 @@ ExitStatusItem::ExitStatusItem( bool nor
         , m_exitStatus( exitStatus )
 {
+        m_text = i18n("*** Compilation aborted ***");
+        if ( m_normalExit && m_exitStatus )
+                m_text = i18n("*** Exited with status: %1 ***").arg( m_exitStatus );
+        if ( m_normalExit )
+                m_text = i18n("*** Success ***");
 }
 
 QString ExitStatusItem::text( EOutputLevel )
 {
-        if ( m_normalExit && m_exitStatus )
-                return i18n("*** Exited with status: %1 ***").arg( m_exitStatus );
-        if ( m_normalExit )
-                return i18n("*** Success ***");
-        return i18n("*** Compilation aborted ***");
+        return m_text;  
 }
 






More information about the KDevelop-devel mailing list