From kde-commits Mon May 19 20:29:47 2003 From: Harald Fernengel Date: Mon, 19 May 2003 20:29:47 +0000 To: kde-commits Subject: kdevelop/parts/valgrind X-MARC-Message: https://marc.info/?l=kde-commits&m=105337713202900 CVS commit by harald: on project change, set the new executable name as default M +7 -0 valgrind_part.cpp 1.12 M +1 -0 valgrind_part.h 1.6 --- kdevelop/parts/valgrind/valgrind_part.cpp #1.11:1.12 @@ -39,4 +39,6 @@ ValgrindPart::ValgrindPart( QObject *par connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)), this, SLOT(slotStopButtonClicked(KDevPlugin*)) ); + connect( core(), SIGNAL(projectOpened()), + this, SLOT(projectOpened()) ); m_widget = new ValgrindWidget( this ); @@ -55,4 +57,9 @@ ValgrindPart::~ValgrindPart() delete m_widget; delete proc; +} + +void ValgrindPart::projectOpened() +{ + _lastExec.truncate( 0 ); } --- kdevelop/parts/valgrind/valgrind_part.h #1.5:1.6 @@ -35,4 +35,5 @@ private slots: void processExited( KProcess* ); void loadOutput(); + void projectOpened(); private: