Explorar o código

fixed message box from showing on first copy

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@113 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden %!s(int64=21) %!d(string=hai) anos
pai
achega
1a780bd18e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      ProcessCopy.cpp

+ 2 - 0
ProcessCopy.cpp

@@ -401,6 +401,8 @@ bool CClip::FindDuplicate( CMainTable& recset, BOOL bCheckLastOnly )
 		if( bCheckLastOnly )
 		if( bCheckLastOnly )
 		{
 		{
 			recset.Open("SELECT * FROM Main");
 			recset.Open("SELECT * FROM Main");
+			if(recset.IsEOF())
+				return false;
 			recset.MoveFirst();
 			recset.MoveFirst();
 			// if an entry exists and they are the same size and the format data matches
 			// if an entry exists and they are the same size and the format data matches
 			if( !recset.IsBOF() && !recset.IsEOF() &&
 			if( !recset.IsBOF() && !recset.IsEOF() &&