Page MenuHomePhabricator

Setting the department logo doesn't work
Closed, ResolvedPublic

Description

There are several bugs in combination which make it impossible to change the department logo, especially, if it originates from an internal Qt resource.

The main reasons are:

(1) The internal resource isn't written to disk as the written contents aren't flushed and hence are lost which results in a file on disk with 0 bytes in size.

(2) The QmitkStdMultiWidgetEditor searches the preferences for the "DepartmentLogo" key and therefore traverses up the preferences tree. However it searches only the initial leaf node instead of its parents in subsequential iterations, which is why the (global) preference is never found.

Event Timeline

User kislinsk has pushed new remote branch:

bug-19164-DepartmentLogo

[affe9b]: Merge branch 'bug-19164-DepartmentLogo'

Merged commits:

2015-07-08 15:09:31 Stefan Kislinskiy [736aa6]
Fixed search routine for finding the DepartmentLogo preference key.


2015-07-08 15:08:28 Stefan Kislinskiy [9da99f]
Handle a few more error cases gracefully and explicitly flush the written logo to disk.

Commit 736aa6 and 9da99f has been integrated into 2015.05.02.