Version: cvs (using KDE cvs) Installed from: KDE 3.1 OS: Search Title says it all. It works in debugging. (From Mantia Andras)
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: