E-book viewer: removed search strings are still kept in viewer-webengine.json

Bug #1930912 reported by etc205
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

1. Open the main calibre program.
2. Double-click on "Quick Start Guide" to open it in E-book viewer.
3. Press Ctrl+f to open the viewer's Search pane.
4. Type "abc123"(no quotes) in the Search input field and press Enter. A warning window saying "No matches were found for: abc123" pops up. Close the warning window.
5. Right-click on the Search input field, a context menu shows up. Click on "Clear search history".
6. Close the E-book viewer.
7. Click on "Preferences -> Searching -> Clear search histories" in the main calibre program.
8. Close the main calibre program.

%APPDATA%/calibre/viewer-webengine.json still contains "abc123", in this piece:

  "saved-search-settings": {
    "abc123": {
      "case_sensitive": false,
      "mode": "normal"
    }
  },

Calibre version: 5.20,
OS: Windows 10 Home 1803.

etc205 (etc205)
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1930912

The viewer and calibre are independent. You want to clear the viewer's
search history, right click on the search field and choose "Clear search
history"

 status invalid

Changed in calibre:
status: New → Invalid
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Invalid → Fix Released
Revision history for this message
etc205 (etc205) wrote (last edit ):

> You want to clear the viewer's search history, right click on the search field and choose "Clear search history"

I did, at step 5.

> The viewer and calibre are independent.

I think there is a dependency: The tooltip of calibre's "Preferences -> Searching -> Clear search histories" button (step 7) says: "Clear search histories from all over calibre. Including the book list, E-book viewer, fetch news dialog, etc.". And clicking on that button clears, among other things, the viewer's search history. It just stays in viewer-webengine.json.

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

Other bug subscribers

Remote bug watches

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