[gnote: 1/2] Fix logic inversion for unfiled notes



commit 537b619bc9b36c8f6c4040a1479310ac462e122b
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]