1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00
JUCE/modules/juce_gui_basics/native
reuk fd2f866dd1 FileChooser: Avoid throwing bad_weak_ptr
It seems like shared_from_this may not be enabled when a unique_ptr is
assigned to a shared_ptr (although it *should* be enabled when
constructing a new shared_ptr from a unique_ptr). Functions that return
objects that may need to use shared_from_this now return shared_ptr,
just to be safe.

Additionally, in some cases, shared_from_this was being called from
Thread::run after the last reference to the shared object had been
released. We now call shared_from_this during 'open', which will always
run on the message thread while at least once reference to the shared
object is alive.
2021-03-03 19:21:43 +00:00
..
java/app/com/rmsl/juce Updated all license headers 2020-06-29 08:30:22 +01:00
javaopt/app/com/rmsl/juce Updated all license headers 2020-06-29 08:30:22 +01:00
x11 X11: Make setFullscreen put windows into true maximised mode 2021-02-16 15:39:31 +00:00
juce_android_ContentSharer.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_android_FileChooser.cpp FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
juce_android_Windowing.cpp Removed Displays const_casts from ComponentPeer implementations 2021-02-08 14:38:09 +00:00
juce_common_MimeTypes.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_ios_ContentSharer.cpp Replaced deprecated Displays methods 2020-10-27 12:38:59 +00:00
juce_ios_FileChooser.mm FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
juce_ios_UIViewComponentPeer.mm Removed Displays const_casts from ComponentPeer implementations 2021-02-08 14:38:09 +00:00
juce_ios_Windowing.mm Added Display::safeAreaInsets and implementations for iOS and Android 2021-02-08 14:38:09 +00:00
juce_linux_FileChooser.cpp FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
juce_linux_Windowing.cpp X11: Make setFullscreen put windows into true maximised mode 2021-02-16 15:39:31 +00:00
juce_mac_FileChooser.mm FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
juce_mac_MainMenu.mm Narrowed the scoped of some undeclared Objective-C selector warnings 2020-12-10 12:48:42 +00:00
juce_mac_MouseCursor.mm Updated all license headers 2020-06-29 08:30:22 +01:00
juce_mac_NSViewComponentPeer.mm macOS: Propagate focus loss message when resigning key window status and only grab focus if window can become the key window 2021-01-28 11:26:41 +00:00
juce_mac_Windowing.mm Removed Displays const_casts from ComponentPeer implementations 2021-02-08 14:38:09 +00:00
juce_MultiTouchMapper.h Updated all license headers 2020-06-29 08:30:22 +01:00
juce_win32_DragAndDrop.cpp Updated all license headers 2020-06-29 08:30:22 +01:00
juce_win32_FileChooser.cpp FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
juce_win32_ScopedThreadDPIAwarenessSetter.h Windows: Added ScopedThreadDPIAwarenessSetter for correctly setting and resetting thread DPI-awareness for methods which interact with an HWND and removed some DPI workarounds 2021-03-02 15:56:10 +00:00
juce_win32_Windowing.cpp Windows: Added ScopedDeviceContext helper 2021-03-02 15:56:55 +00:00