Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Tabs switch unexpectedly when multiple documents open on MacOS #7745

Open
2 tasks done
gotchoices opened this issue Nov 8, 2022 · 10 comments
Open
2 tasks done
Labels

Comments

@gotchoices
Copy link

gotchoices commented Nov 8, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Forums discussion

https://forum.freecadweb.org/viewtopic.php?style=3&p=493530

Version

0.21 (Development)

Full version info

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.30868 (Git)
Build type: Release
Branch: master
Hash: b3372a52054fc34c243ac508ce67717b1476f2a9
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * sheetmetal 0.2.58

Subproject(s) affected?

No response

Issue description

To reproduce:

  • Be on MacOS platform (as far as I can tell)
  • Create two separate new documents.
  • In each one, create a body and a sketch.
  • Attempt to edit the sketch in the second document (double click, edit menu, etc.)

Results: Instead of seeing the sketch you just chose to edit, the screen focus will change to the first document tab. You won't be viewing the edited sketch (in the second part) you just selected to edit.

If you manually select that tab, you will see that editing mode on the sketch has been correctly enabled--you just lost focus of it.

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@gotchoices
Copy link
Author

I just posted and funded a bounty for this issue:

Here:

@luzpaz luzpaz added the 🎯 Bounty Issue has a bounty label Nov 8, 2022
@gotchoices
Copy link
Author

Here's an update: I tested the latest realthunder fork and this bug seems to NOT be present there. This may help narrow down the problem for fixing in the main distro:

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 2022.1021.26244 +5249 (Git)
Build type: Release
Branch: LinkDaily
Hash: d307b5c
Python version: 3.9.13
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: C/Default (C)

@yorikvanhavre
Copy link
Member

@realthunder you might have the fix already :)

@realthunder
Copy link
Collaborator

That's a stubborn problem on MacOS. I've made several attempts to fix, but it kept coming back. Not sure what change that did the job. I'll try to dig it out.

@gotchoices
Copy link
Author

If you can discover the root cause, it would be so great to add a regression test for it so it doesn't keep cropping up.

@luzpaz luzpaz changed the title Switches tabs unexpectedly when multiple documents open on MacOS [Bug] Tabs switch unexpectedly when multiple documents open on MacOS Nov 17, 2022
@luzpaz luzpaz added the UI/UX label Nov 17, 2022
@realthunder
Copy link
Collaborator

Can someone that uses MacOS test this small patch. I wasn't sure if this is actually a fix at the time, so the commit log says it's a temporary fix.

@gotchoices
Copy link
Author

I'm happy to test, but having some challenges trying to compile from source on my platform at the moment. Anyone have a working mac build environment they can use to deploy the patch (or willing to help me debug some build problems off forum)?

@luzpaz
Copy link
Contributor

luzpaz commented Nov 20, 2022

can't wait till we have cross-platform experimental builds (and not just for snap packaging)

@scott-pett
Copy link

I'm still seeing this problem with the Link Daily branch v20230131 with Macos 13.2

1 similar comment
@scott-pett

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants