After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793101 - Notes lost their titles
Notes lost their titles
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
: 793093 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2018-02-01 18:38 UTC by Debarshi Ray
Modified: 2018-02-06 23:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of notes without titles (12.15 KB, image/png)
2018-02-01 18:38 UTC, Debarshi Ray
  Details
webkit-editor: Fix title saving (1.08 KB, patch)
2018-02-05 22:04 UTC, Isaque Galdino
rejected Details | Review
Tarred .local/share/bijiben/ (10.00 KB, application/x-compressed-tar)
2018-02-06 11:05 UTC, Debarshi Ray
  Details
webkit-editor: Fix saving title (1.13 KB, patch)
2018-02-06 22:36 UTC, Isaque Galdino
committed Details | Review

Description Debarshi Ray 2018-02-01 18:38:38 UTC
Created attachment 367768 [details]
Screenshot of notes without titles

I had 3 notes in Bijiben, and two of them lost their titles. I was playing with the application, switching back and forth between the grid and list views, trying the selection mode, etc.. After restarting the application for the Nth time, I saw that two of my notes no longer have a title. This happens in both the list and grid views.

The notes still have their contents, though. If I open them, the entire text is still there.
Comment 1 Isaque Galdino 2018-02-05 22:04:25 UTC
Created attachment 367933 [details] [review]
webkit-editor: Fix title saving

When you have only one line in a note, Notes should use that as title,
but it only considers a title when it has at least two.

This patch changes that, so Notes will start to consider a note to have
at least 1 line for saving.
Comment 2 Mohammed Sadiq 2018-02-06 01:56:22 UTC
Review of attachment 367933 [details] [review]:

I don't see any change with the code (I can't reproduce the bug). But the patch logic looks good.

You may also update the preceding comment "g_strv_length (rows) > 1" to "g_strv_length (rows) > 0".
Also, deleting the blank line just after this comment may also be good.

Please push to master.
Comment 3 Debarshi Ray 2018-02-06 11:05:33 UTC
Created attachment 367951 [details]
Tarred .local/share/bijiben/
Comment 4 Debarshi Ray 2018-02-06 11:06:08 UTC
Attached a tarball of my ~/.local/share/bijiben. Maybe that will shed some light on this issue?

Thanks a lot for looking into this!
Comment 5 Isaque Galdino 2018-02-06 22:36:14 UTC
Created attachment 367967 [details] [review]
webkit-editor: Fix saving title

When you have only one line in a note, Notes should use that as title,
but it only considers a title when it has at least two.

This patch changes that, so Notes will start to consider a note to have
at least 1 line for saving.
Comment 6 Isaque Galdino 2018-02-06 23:12:11 UTC
Review of attachment 367933 [details] [review]:

obsolete
Comment 7 Isaque Galdino 2018-02-06 23:13:26 UTC
Review of attachment 367967 [details] [review]:

(In reply to Mohammed Sadiq from comment #2)
> Review of attachment 367933 [details] [review] [review]:
> You may also update the preceding comment "g_strv_length (rows) > 1" to
> "g_strv_length (rows) > 0".
Done.

> Also, deleting the blank line just after this comment may also be good.
Done.

> Please push to master.
Done.

And I also changed the title as you suggested by chat. Thanks for your review!
Comment 8 Isaque Galdino 2018-02-06 23:15:10 UTC
(In reply to Debarshi Ray from comment #4)
> Attached a tarball of my ~/.local/share/bijiben. Maybe that will shed some
> light on this issue?

Thanks for sharing that. I've used your notes to test. After applying the patch above, I was able to save your notes nicely.
Comment 9 Isaque Galdino 2018-02-06 23:26:26 UTC
*** Bug 793093 has been marked as a duplicate of this bug. ***