[gnote/gnome-3-36] Fix logic inversion for unfiled notes



commit 8e1fe6059e76b2eeac57efe2c0219c8e3bea07f9
Author: Jonas Hahnfeld <hahnjo hahnjo de>
Date:   Mon Jun 15 16:13:00 2020 +0200

    Fix logic inversion for unfiled notes
    
    A note is contained in the UnfiledNotesNotebook iff it's not in
    another notebook. That logic was accidentally reversed in commit
    d37096266 ("Get IGnote from member").

 src/notebooks/specialnotebooks.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/notebooks/specialnotebooks.cpp b/src/notebooks/specialnotebooks.cpp
index 4efa87f2..cc33f85f 100644
--- a/src/notebooks/specialnotebooks.cpp
+++ b/src/notebooks/specialnotebooks.cpp
@@ -84,7 +84,7 @@ Glib::ustring UnfiledNotesNotebook::get_normalized_name() const
 
 bool UnfiledNotesNotebook::contains_note(const Note::Ptr & note, bool include_system)
 {
-  bool contains = m_note_manager.notebook_manager().get_notebook_from_note(note) != nullptr;
+  bool contains = m_note_manager.notebook_manager().get_notebook_from_note(note) == nullptr;
   if(!contains || include_system) {
     return contains;
   }


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