[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts/cvs
From: Mario Scalas <mario.scalas () libero ! it>
Date: 2003-06-08 16:01:31
[Download RAW message or body]
CVS commit by marios:
Fix for false reporting of diff cancelled while instead there is no differences in the repository
M +5 -6 cvspart.cpp 1.43
M +2 -2 cvspart.h 1.19
--- kdevelop/parts/cvs/cvspart.h #1.18:1.19
@@ -103,6 +103,6 @@ private:
// (if not, returns false since it avoid performing CVS operation)
bool isRegisteredInRepository();
- // Display "cvs diff" results in the diff part.
- void diffFinished( const QString& diff, const QString& err );
+ // Display "cvs diff" results in the diff part (embedded views).
+ void diffFinished( const QString& diff, const QString& err, const int processExitCode = 0 );
// Call this every time a slot for cvs operations starts!! (It will setup the
// state (file/dir URL, ...).
--- kdevelop/parts/cvs/cvspart.cpp #1.42:1.43
@@ -282,7 +282,8 @@ bool CvsPart::isRegisteredInRepository()
///////////////////////////////////////////////////////////////////////////////
-void CvsPart::diffFinished( const QString& diff, const QString& err )
+void CvsPart::diffFinished( const QString& diff, const QString& err, const int processExitCode )
{
- if (diff.isNull() && err.isNull() )
+// if (diff.isNull() && err.isNull() )
+ if (processExitCode)
{
kdDebug(9000) << "cvs diff cancelled" << endl;
@@ -698,8 +699,6 @@ void CvsPart::projectConfigWidget( KDial
QWidget* CvsPart::newProjectWidget( QWidget *parent )
{
- if (!form)
- {
- form = new CvsForm( parent );
- }
+ form = new CvsForm( parent, "cvsform" );
+
return form;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic