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
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
..
application Updated all license headers 2020-06-29 08:30:22 +01:00
buttons Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
commands XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
components FileChooser: Hide chooser when it leaves scope on Windows 2021-03-02 10:49:39 +00:00
desktop Displays: Added floating-point physical<->logical coordinate conversion methods 2021-02-19 19:07:12 +00:00
drawables CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
filebrowser FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
keyboard Updated all license headers 2020-06-29 08:30:22 +01:00
layout Update SidePanel visibility when shown/hidden and set always on top 2021-01-29 15:40:12 +00:00
lookandfeel PopupMenu: Add LookAndFeelMethods for drawing column separators 2020-10-26 17:04:49 +00:00
menus Added checks for DOXYGEN #define when excluding modal methods in headers 2021-02-05 14:17:19 +00:00
misc juce6: Update some referenes to JUCE 5 in docstrings 2020-07-01 10:00:43 +01:00
mouse Clang: Fix warnings when building with clang 10 2020-07-01 10:00:43 +01:00
native FileChooser: Avoid throwing bad_weak_ptr 2021-03-03 19:21:43 +00:00
positioning CharacterFunctions: Add new function to move pointer past whitespace 2021-02-18 10:54:29 +00:00
properties XmlElement: Update loops to use new iterators 2021-01-28 20:14:11 +00:00
widgets TextEditor: Fixed a bug where the horizontal viewport scrollbar could be shown unnecessarily 2021-02-23 17:02:55 +00:00
windows Removed Displays const_casts from ComponentPeer implementations 2021-02-08 14:38:09 +00:00
juce_gui_basics.cpp 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_gui_basics.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_gui_basics.mm Updated all license headers 2020-06-29 08:30:22 +01:00