[gnote] Use start_note_uri
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use start_note_uri
- Date: Sat, 19 Dec 2020 14:06:21 +0000 (UTC)
commit d28935af33966cac47b6445212f4d8b35c5f8feb
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Dec 19 14:51:10 2020 +0200
Use start_note_uri
src/dbus/remotecontrol.cpp | 2 +-
src/note.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dbus/remotecontrol.cpp b/src/dbus/remotecontrol.cpp
index 91ac6916..43802694 100644
--- a/src/dbus/remotecontrol.cpp
+++ b/src/dbus/remotecontrol.cpp
@@ -160,7 +160,7 @@ namespace gnote {
Glib::ustring RemoteControl::FindStartHereNote()
{
- NoteBase::Ptr note = m_manager.find_by_uri(m_manager.start_note_uri());
+ NoteBase::Ptr note = m_manager.find_by_uri(m_gnote.preferences().start_note_uri());
return (!note) ? "" : note->uri();
}
diff --git a/src/note.cpp b/src/note.cpp
index a718c6da..4a0368eb 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -760,8 +760,8 @@ namespace gnote {
}
bool Note::is_special() const
- {
- return manager().start_note_uri() == m_data.data().uri();
+ {
+ return m_gnote.preferences().start_note_uri() == m_data.data().uri();
}
bool Note::is_pinned() const
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]