[gnote/gnome-3-36] Fix condition for checking if note exists



commit 617c2dac5c15232413c3f30dc5c6dbf2b42346ab
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue Mar 17 23:25:16 2020 +0200

    Fix condition for checking if note exists

 src/synchronization/syncmanager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/synchronization/syncmanager.cpp b/src/synchronization/syncmanager.cpp
index 2c7c59f6..5d03f82f 100644
--- a/src/synchronization/syncmanager.cpp
+++ b/src/synchronization/syncmanager.cpp
@@ -221,7 +221,7 @@ namespace sync {
       //       Want this stuff to happen all at once first, but
       //       maybe there's a way to store this info and pass it on?
       for(auto & iter : noteUpdates) {
-        if(!find_note_by_uuid(iter.second.m_uuid) != 0) {
+        if(find_note_by_uuid(iter.second.m_uuid) != 0) {
           NoteBase::Ptr existingNote = note_mgr().find(iter.second.m_title);
           if(existingNote != 0 && 
!iter.second.basically_equal_to(std::static_pointer_cast<Note>(existingNote))) {
             DBG_OUT("Sync: Early conflict detection for '%s'", iter.second.m_title.c_str());


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]