Hello community,

here is the log from the commit of package gnote for openSUSE:Factory checked 
in at 2020-05-06 11:03:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnote (Old)
 and      /work/SRC/openSUSE:Factory/.gnote.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnote"

Wed May  6 11:03:53 2020 rev:66 rq:800458 version:3.36.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnote/gnote.changes      2020-04-23 
18:30:19.680075150 +0200
+++ /work/SRC/openSUSE:Factory/.gnote.new.2738/gnote.changes    2020-05-06 
11:03:59.439227058 +0200
@@ -1,0 +2,6 @@
+Tue May  5 19:30:23 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Add gnote-initial-notes-creation.patch: Fix generation of initial
+  notes (e.g. Start here) on first run (boo1170588).
+
+-------------------------------------------------------------------

New:
----
  gnote-initial-notes-creation.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnote.spec ++++++
--- /var/tmp/diff_new_pack.hoKGQs/_old  2020-05-06 11:04:01.411231291 +0200
+++ /var/tmp/diff_new_pack.hoKGQs/_new  2020-05-06 11:04:01.415231299 +0200
@@ -27,7 +27,8 @@
 URL:            https://wiki.gnome.org/Apps/Gnote
 Source0:        
https://download.gnome.org/sources/gnote/%{base_version}/%{name}-%{version}.tar.xz
 Source99:       gnote-rpmlintrc
-
+# PATCH-FIX-UPSTREAM gnote-initial-notes-creation.patch boo#1170588 
[email protected] -- Fix generation of sample notes on first start
+Patch0:         gnote-initial-notes-creation.patch
 BuildRequires:  desktop-file-utils
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++

++++++ gnote-initial-notes-creation.patch ++++++
>From ea1da8fef7d78e4780059728fd352c6d2869a54c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aurimas=20=C4=8Cernius?= <[email protected]>
Date: Sun, 3 May 2020 12:54:53 +0300
Subject: [PATCH] Fix start note creation and importing on first run

Fixes https://gitlab.gnome.org/GNOME/gnote/-/issues/36
---
 src/notemanager.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/notemanager.cpp b/src/notemanager.cpp
index 5c58ee25..ff7375ed 100644
--- a/src/notemanager.cpp
+++ b/src/notemanager.cpp
@@ -50,8 +50,9 @@ namespace gnote {
   void NoteManager::init(const Glib::ustring & directory)
   {
     Glib::ustring backup = directory + "/Backup";
-    NoteManagerBase::init(directory, backup);
+    // Before base init, after it will be false already
     bool is_first_run = first_run();
+    NoteManagerBase::init(directory, backup);
 
     Glib::RefPtr<Gio::Settings> settings = 
m_preferences.get_schema_settings(Preferences::SCHEMA_GNOTE);
     // Watch the START_NOTE_URI setting and update it so that the
-- 
2.26.2



Reply via email to