Strange behaviour of Multiview

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
Raziel
Posts: 1175
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Strange behaviour of Multiview

Post by Raziel »

I found a strange behaviour (bug?) in Multiview.

Steps to reproduce:

1) Get any .lha file with a text file inside (I can reproduce it with this)
2) Double-click on the file
--> Unarc will come up with the contents of the .lha
3) Double-click on "HOSTS" (or respectively on your text file)
--> Multiview will come up showing the file
4) Now right-click in Multiview to bring up it's menu
5) Project/Save-as
--> Choose a path and a filename (doesn't matter what or where)
6) Click OK
--> The file will be created, but it will always be empty (Bug?)

The file Multiview displays is in fact temporarily saved in T: (and it's completely unpacked)
Why Multiview isn't able to save it while being opened from Unarc is beyond me though.
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
djg
Posts: 30
Joined: Sat Jan 26, 2013 5:00 pm

Re: Strange behaviour of Multiview

Post by djg »

I think MultiView is saving a marked block of text of zero size.
I can save a file fine, but if I click on any character, and then save the file, it is empty.
If I save it again without clicking in the text, the whole text is saved again.
User avatar
Raziel
Posts: 1175
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: Strange behaviour of Multiview

Post by Raziel »

djg wrote:I think MultiView is saving a marked block of text of zero size.
I can save a file fine, but if I click on any character, and then save the file, it is empty.
If I save it again without clicking in the text, the whole text is saved again.
You are right...i never ever imagined that clicking *into* the Multiview window to make it active might cause Multiview to think i marked a character.

Maybe changing this behaviour to only *mark* something if at least one character has actually been marked will prevent others to report this behaviour in future :-D

Thanks for the hint
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
djg
Posts: 30
Joined: Sat Jan 26, 2013 5:00 pm

Re: Strange behaviour of Multiview

Post by djg »

Raziel wrote: You are right...i never ever imagined that clicking *into* the Multiview window to make it active might cause Multiview to think i marked a character.
Well, why would you if MultiView doesn't give you a clue?
Raziel wrote: Maybe changing this behaviour to only *mark* something if at least one character has actually been marked will prevent others to report this behaviour in future :-D
That would be better, yes. And maybe have a separate menu item in the edit menu for saving selected text, and leave the Save As menu item in the project menu for saving the entire file.
Post Reply