Hello Daniel,

This indeed appears to be a bug for me. Thanks for the patch, I will look into 
it tomorrow and let you know of the result.

Best,
Keno

-----Ursprüngliche Nachricht-----
Von: Daniel Maleike [mailto:[email protected]] 
Gesendet: Dienstag, 18. August 2015 13:24
An: mitk-users
Betreff: [mitk-users] Default file writer in Data Manager's "Save..." dialog

Hi,

I worked a bit with a custom file writer and would like to make it the default 
choice in Data Manager's "Save..." dialog.

I understood that the Qt file type list is constructed by QmitkIOUtil which 
makes use of mitk::FileWriterSelector.

When setting a high-enough "ranking" and an appropriate "base data type" 
for my writer, it gets correctly selected as default and current selection by 
the FileWriterSelector class. QmitkIOUtil will however always select the first 
item in its file type list, completely ignoring what the FileWriterSelector 
determined as default. To reproduce this easily, you could manipulate 
mitk::ImageVtkXmlIO, for example.

Question: is the behavior of the Qt dialog wanted? Or could we adapt it to 
match the "decision" of the FileWriterSelector? Attached patch (applies to 
3fc812cc)  is what I would have in mind.

Kind regards,
Daniel

--
Dr. Daniel Maleike, Mint Medical GmbH
Friedrich-Ebert-Straße 2, 69221 Dossenheim/Heidelberg
Geschäftsführer: Dr. Matthias Baumhauer, Registergericht Mannheim, HRB 709351

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to