[gnote] Do not statically access IGnote in backlinks
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Do not statically access IGnote in backlinks
- Date: Sat, 26 Oct 2019 19:52:57 +0000 (UTC)
commit 2990cf354b78c085fe0e1eacf4a87fb120d597ee
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sat Oct 26 22:49:44 2019 +0300
Do not statically access IGnote in backlinks
src/addins/backlinks/backlinksnoteaddin.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/addins/backlinks/backlinksnoteaddin.cpp b/src/addins/backlinks/backlinksnoteaddin.cpp
index dac45668..2ac540a0 100644
--- a/src/addins/backlinks/backlinksnoteaddin.cpp
+++ b/src/addins/backlinks/backlinksnoteaddin.cpp
@@ -66,7 +66,7 @@ void BacklinksNoteAddin::on_open_note(const Glib::VariantBase & param)
gnote::NoteBase::Ptr note = get_note()->manager().find_by_uri(uri);
if(note) {
gnote::MainWindow::present_in_new_window(std::static_pointer_cast<gnote::Note>(note),
- gnote::IGnote::obj().preferences().get_schema_settings(gnote::Preferences::SCHEMA_GNOTE)->
+ ignote().preferences().get_schema_settings(gnote::Preferences::SCHEMA_GNOTE)->
get_boolean(gnote::Preferences::ENABLE_CLOSE_NOTE_ON_ESCAPE));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]