Commit 3db5af36 authored by Aurimas Černius's avatar Aurimas Černius

Merge branch 'unfiled-notes' into 'master'

Fix logic inversion for unfiled notes

See merge request !8
parents 5a0bf562 537b619b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment