[Bug 55285] Running an app from Gideon does not enable stop button/menu
Jens Dagerbo
jens.dagerbo at swipnet.se
Sat Nov 15 15:01:02 UTC 2003
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=55285
jens.dagerbo at swipnet.se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jens.dagerbo at swipnet.se 2003-11-15 15:00 -------
Subject: kdevelop/parts/outputviews
CVS commit by dagerbo:
Make it possible to stop the running program.
CCMAIL: 55285-done at 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:
More information about the KDevelop-devel
mailing list