Bug 55285 - Running an app from Gideon does not enable stop button/menu
Summary: Running an app from Gideon does not enable stop button/menu
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: git master
Platform: unspecified Other
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 15:37 UTC by Caleb Tennis
Modified: 2003-11-15 15:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Tennis 2003-02-27 15:37:24 UTC
Version:           cvs (using KDE cvs)
Installed from:    KDE 3.1
OS:          Search

Title says it all.  It works in debugging.

(From Mantia Andras)
Comment 1 Jens Dagerbo 2003-11-15 15:00:05 UTC
Subject: kdevelop/parts/outputviews

CVS commit by dagerbo: 


Make it possible to stop the running program.

CCMAIL: 55285-done@bugs.kde.org


  M +11 -0     appoutputviewpart.cpp   1.26
  M +1 -0      appoutputviewpart.h   1.9


--- kdevelop/parts/outputviews/appoutputviewpart.cpp  #1.25:1.26
@@ -45,4 +45,5 @@ AppOutputViewPart::AppOutputViewPart(QOb
     connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)),
              this, SLOT(slotStopButtonClicked(KDevPlugin*)) );
+    connect(m_widget, SIGNAL(processExited(KProcess*)), this, SLOT(slotProcessExited()));
     connect(m_widget, SIGNAL(processExited(KProcess*)), SIGNAL(processExited()));
 }
@@ -67,4 +68,11 @@ void AppOutputViewPart::stopApplication(
 {
     m_widget->killJob();
+
+    core()->running( this, false );
+}
+
+void AppOutputViewPart::slotProcessExited( KProcess * )
+{
+    core()->running( this, false );
 }
 
@@ -98,4 +106,7 @@ void AppOutputViewPart::startAppCommand(
       // use the supplied directory
       m_widget->startJob(directory, cmd);
+
+    core()->running( this, true );
+
     mainWindow()->raiseView(m_widget);
 }

--- kdevelop/parts/outputviews/appoutputviewpart.h  #1.8:1.9
@@ -41,4 +41,5 @@ signals:
 private slots:
     void slotStopButtonClicked(KDevPlugin*);
+    void slotProcessExited();
 
 private: