[gnote] Do not use singleton IGnote in Notebook
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Do not use singleton IGnote in Notebook
- Date: Mon, 9 Dec 2019 20:42:04 +0000 (UTC)
commit a464c3e8381f45583d1d24b98829baa1ed2a4679
Author: Aurimas Černius <aurisc4 gmail com>
Date: Mon Dec 9 22:41:22 2019 +0200
Do not use singleton IGnote in Notebook
src/notebooks/notebook.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/notebooks/notebook.cpp b/src/notebooks/notebook.cpp
index 347818de..92a88f4a 100644
--- a/src/notebooks/notebook.cpp
+++ b/src/notebooks/notebook.cpp
@@ -23,7 +23,6 @@
#include <glibmm/i18n.h>
#include "sharp/string.hpp"
-#include "ignote.hpp"
#include "notemanager.hpp"
#include "notebooks/notebook.hpp"
#include "notebooks/notebookmanager.hpp"
@@ -208,7 +207,7 @@ namespace notebooks {
bool Notebook::add_note(const Note::Ptr & note)
{
- IGnote::obj().notebook_manager().move_note_to_notebook(note, shared_from_this());
+ m_note_manager.notebook_manager().move_note_to_notebook(note, shared_from_this());
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]