Bug 68570 - "Swap Source with Destination" gives "The files are identical" no matter what
Summary: "Swap Source with Destination" gives "The files are identical" no matter what
Status: RESOLVED FIXED
Alias: None
Product: kompare
Classification: Applications
Component: general (show other bugs)
Version: 3.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Otto Bruggeman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 10:09 UTC by Amilcar do Carmo Lucas
Modified: 2003-11-19 11:46 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amilcar do Carmo Lucas 2003-11-19 10:09:11 UTC
Version:           3.2 (using KDE KDE 3.1.3)
Installed from:    SuSE RPMs
Compiler:          gcc 2.95.3 
OS:          Linux

Even if the files are diferent and the diferences are shown, when I select "Swap Source with Destination" I always get: "The files are identical" :(
Comment 1 Amilcar do Carmo Lucas 2003-11-19 10:09:43 UTC
Thei is CVS HEAD
Comment 2 Otto Bruggeman 2003-11-19 11:46:49 UTC
Subject: kdesdk/kompare/libdiff2

CVS commit by bruggie: 

Fixed bug 68570, it needed temp vars...
CCMAIL: 68570-done@bugs.kde.org


  M +4 -2      komparemodellist.cpp   1.43


--- kdesdk/kompare/libdiff2/komparemodellist.cpp  #1.42:1.43
@@ -1000,8 +1000,10 @@ void KompareModelList::clear()
 void KompareModelList::swap()
 {
+        QString source = m_source;
+        QString destination = m_destination;
         if ( m_info->mode == Kompare::ComparingFiles )
-                compareFiles( m_destination, m_source );
+                compareFiles( destination, source );
         else if ( m_info->mode == Kompare::ComparingDirs )
-                compareDirs( m_destination,  m_source );
+                compareDirs( destination, source );
 }