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

List:       kde-commits
Subject:    kdevelop/parts/autoproject
From:       Amilcar do Carmo Lucas <amilcar () ida ! ing ! tu-bs ! de>
Date:       2003-07-28 16:31:26
[Download RAW message or body]

CVS commit by aclu: 

Changed the Run shortcut to "F9" to avoid the conflict with the reload (F5) Kate action.
Fixed the m_lastCompilationFailed flag 
(it would not recompile in some situations)


  M +7 -2      autoprojectpart.cpp   1.103


--- kdevelop/parts/autoproject/autoprojectpart.cpp  #1.102:1.103
@@ -139,5 +139,5 @@ AutoProjectPart::AutoProjectPart(QObject
     if (!DomUtil::readBoolEntry(dom, "/kdevautoproject/run/disable_default")) {
         //ok we handle the execute in this kpart
-        action = new KAction( i18n("Execute Program"), "exec", Key_F5,
+        action = new KAction( i18n("Execute Program"), "exec", Key_F9,
                               this, SLOT(slotExecute()),
                               actionCollection(), "build_execute" );
@@ -639,5 +639,5 @@ void AutoProjectPart::queueInternalLibDe
 void AutoProjectPart::slotBuild()
 {
-    m_lastCompilationFailed = false;
+    //m_lastCompilationFailed = false;
 
     if( m_needMakefileCvs ){
@@ -657,4 +657,6 @@ void AutoProjectPart::buildTarget(QStrin
     return;
 
+  //m_lastCompilationFailed = false;
+
   // Calculate the complete name of the target and store it in name
   QString name = titem->name;
@@ -1010,4 +1012,7 @@ void AutoProjectPart::slotCommandFinishe
 
     emit projectCompiled();
+
+    // reset the "last compilation has failed" flag
+    m_lastCompilationFailed = false;
 
     if( m_executeAfterBuild ){


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

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