Zim

Window state of dialogs not correctly remembered between boots

Bug #1405393 reported by vanadium
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zim
Fix Committed
Medium
Unassigned

Bug Description

Zim 0.62 on Ubuntu 14.10

The state of dialogs such as TaskListDialog or InsertDateDialog is not correctly remembered accross reboots.

Steps to reproduce the problem

- Insert date
- Select another date format, turn calendar on

Next time in a current session, the settings are correctly remembered. However, after a reboot, ZIM reverts to a default state.

Could this be a problem with the cache (~/.cache/zim/notebook-home_vanadium_Documents_Zim_zim_Notes/state.conf) not being copied over to the actual notebook settings (~/Documents/Zim/.zim/state.conf)? I notice that at the start of the session, the section [InsertDateDialog] is lacking from state.conf in the cache. When I change the DateDialog, such section is written out in the cache once the notebook is closed. Settings are remembered on subsequent opening of the notebook, but are lost after the system rebooted. Apparently the changes written in the cache do not make it to the state.conf of the notebook.

(I guess this is a functionality introduced to allow opening a Zim notebook over a network, allwoing to keep track of changes on the local file system. My notebook however is just on the local drive)

Revision history for this message
vanadium (ftack) wrote :

Some more ingo after investigation: it is not a matter of "between reboots", but of not writing out config about a dialog in the cache if the dialog was not used.

To reproduce:

Open ZIM, open DateDialog, change settings. Close ZIM

Open ZIM, open DateDialog: settings are remembered

Open ZIM and DO NOT open DateDialog, Close ZIM. Now settings for DateDialog are not written out!

Open ZIM again: settings for DateDialog are lost.

Changed in zim:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix in b9f16fc

Changed in zim:
status: Confirmed → Fix Committed
Revision history for this message
sojusnik (sojusnik) wrote :

Finally! Thanks a thousand times!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.