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: