Template Tester: Open second disposable instance

Bug #2002257 reported by ownedbycats
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Charles Haley

Bug Description

Calibre 6.11* (run from source)

When modifying templates, sometimes it'd be helpful to be able to compare the results of two templates. The option to open a second instance of the tester would help with this.

Save conflicts may be a problem, but perhaps this could be dealt with by making the window explicitly disposable and unable to save upon close. (It may also be a good idea to have it listed as disposable in the titlebar so the user doesn't close the wrong one.)

Thanks in advance.

Revision history for this message
Kovid Goyal (kovid) wrote :

Changing the component for this bug.

 assignee
 status

Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

I am willing to add the ability to open multiple testers, but only using the template tester action. If a tester is open in some special context like a rule or editing a composite template then only one instance will be permitted. Doing otherwise is a huge can of worms.

@kovid: are you OK with non-modal parentless windows? In this case the user can switch back to the standard gui with alt-tab and windows can cover each other.

Changed in calibre:
status: Triaged → Incomplete
Revision history for this message
Kovid Goyal (kovid) wrote :

Should be fine, thats how the viewer and editor work after all. Although
they use QMainWindow not QDialog. I dont think that should cause any
problems though. Just be sure to call raise_() to ensure the
non-parented window has focus/is on top.

Charles Haley (cbhaley)
Changed in calibre:
status: Incomplete → Fix Committed
Kovid Goyal (kovid)
Changed in calibre:
status: Fix Committed → Fix Released
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.