hmmm, 'Today I Learned...'vanuan wrote: ↑Thu Sep 17, 2020 2:51 amAre you talking about the start page? It is a web view. When you drag something into a webview it opens that file. Web view can't handle the FreeCAD file, since it's not an image, not a text file, not a video. It's a binary. And the default behavior when opening a binary in a browser is to download it.
I think we have to ask wmayer to explain why FreeCAD needs this:
This makes sense.
That's a scenario I never had on my radar. But for me this also happens with my system browser when I drag and drop a file it doesn't support it opens the download dialog. Anyway, you're right that FreeCAD should load the file even if dropped on the start page.
I do not know yet what exactly happens internally. Must debug through the code first...But that can't be right, why would you even support drag and dropping into a web view rather than a whole application window? Isn't Qt able to intercept dropping a file into a web view? This must've been done intentionally.
git commit dea2fad51
This looks like a valid use case. The image is loaded into the web page and the logic is handled by the web engine. You can go back to the previous content by clicking on the left arrow button.Another bug is that when you drop an image into a start page, it replaces the start page instead of opening a new window or a download manager.