Bug 441901 - It's impossible to close a file in dual monitor setup
Summary: It's impossible to close a file in dual monitor setup
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 5.0.0-beta1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-02 08:48 UTC by Yu-Hsuan Lai
Modified: 2021-12-16 08:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yu-Hsuan Lai 2021-09-02 08:48:45 UTC
SUMMARY
This bug only happens in some specific conditions. See steps to reproduce.

STEPS TO REPRODUCE
1. Create and save two .kra files, namely A.kra and B.kra. 
2. Close Krita and reopen in a blank state.
3. Set Settings -> General -> Window -> Multiple Document Mode to "Subwindows"
4. Switch to windows layout "Dual screen editing". Now we have two Krita windows, namely "Win1" and "Win2".
5. Save a new windows layout, with "Show active image in all windows" checked. 
6. Open A.kra in both Krita windows.
7. Open B.kra by double clicking it from file explorer.
8. Close A.kra in Win1.
9. Close A.kra in Win2.

OBSERVED RESULT
A.kra is re-opened in Win1.

EXPECTED RESULT
A.kra is completely closed.

SOFTWARE/OS VERSIONS
Krita

 Version: 5.0.0-beta1
 Languages: en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.12.11
  Version (loaded): 5.12.11

OS Information

  Build ABI: x86_64-little_endian-llp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: winnt
  Kernel Version: 10.0.22000
  Pretty Productname: Windows 10 (10.0)
  Product Type: windows
  Product Version: 10
Comment 1 Will Stephenson 2021-12-16 08:50:59 UTC
Reproduced in 5.0.0beta5 (0e4b844)

With the difference that after closing A.kra on Win1 in Step 8, A.kra appears closed in both windows and B.kra is visible.

I notice that at this point Win1's document list in the Window menu only shows B.kra. However, Win2's document list contains A.kra and B.kra.

After closing B.kra on Win2 after Step 8, A.kra is revealed on Win2 and opened again on Win1.