Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Frameworks
KIO
Commits
3134b410
Commit
3134b410
authored
Feb 13, 2021
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix KDirOperator crash with libc++, due to unique_ptr difference
Same reasoning as the previous commit
parent
a8a2c080
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/filewidgets/kdiroperator.cpp
src/filewidgets/kdiroperator.cpp
+6
-0
No files found.
src/filewidgets/kdiroperator.cpp
View file @
3134b410
...
...
@@ -214,6 +214,12 @@ public:
KDirOperatorPrivate
::~
KDirOperatorPrivate
()
{
if
(
m_itemView
)
{
// fix libc++ crash: its unique_ptr implementation has already set 'd' to null
// and the event filter will get a QEvent::Leave event if we don't remove it.
m_itemView
->
removeEventFilter
(
q
);
}
delete
m_itemView
;
m_itemView
=
nullptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment