[gnote] Get IGnote from member
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Get IGnote from member
- Date: Sun, 15 Dec 2019 12:10:39 +0000 (UTC)
commit d37096266e777dadba651d3d5fc402acf343adec
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 15 14:04:37 2019 +0200
Get IGnote from member
src/notebooks/specialnotebooks.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/notebooks/specialnotebooks.cpp b/src/notebooks/specialnotebooks.cpp
index c7934b7e..6decf5be 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 = !IGnote::obj().notebook_manager().get_notebook_from_note(note);
+ bool contains = m_note_manager.notebook_manager().get_notebook_from_note(note) != nullptr;
if(!contains || include_system) {
return contains;
}
@@ -93,7 +93,7 @@ bool UnfiledNotesNotebook::contains_note(const Note::Ptr & note, bool include_sy
bool UnfiledNotesNotebook::add_note(const Note::Ptr & note)
{
- IGnote::obj().notebook_manager().move_note_to_notebook(note, Notebook::Ptr());
+ m_note_manager.notebook_manager().move_note_to_notebook(note, Notebook::Ptr());
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]