Summary: | Running an app from Gideon does not enable stop button/menu | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Caleb Tennis <caleb> |
Component: | general | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Other | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Caleb Tennis
2003-02-27 15:37:24 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: |