Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Amarok
Commits
9603fa89
Commit
9603fa89
authored
Jun 12, 2011
by
Kevin Funk
Browse files
Avoid possible crash in Context::Applet::collapse
BUG: 258741 FIXED-IN: 2.4.2
parent
ff8b2868
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
9603fa89
...
...
@@ -24,6 +24,8 @@ VERSION 2.4.2-Beta 1
reduce the number of cache-related crashes.
BUGFIXES:
* Avoid crash in ContextView when accessing Plasma::Applet::view().
(BR 258741)
* Fixed playlist tooltip getting too tall for multiline comments. (BR 256038)
* Made equalizer keywords (dB,kHz,...) translatable. (BR 263572)
* Made equalizer preset names translatable. (BR 263596)
...
...
src/context/Applet.cpp
View file @
9603fa89
...
...
@@ -311,7 +311,11 @@ Context::Applet::collapse( bool on )
connect
(
pan
,
SIGNAL
(
finished
()),
SLOT
(
collapseAnimationFinished
())
);
m_animation
=
pan
;
pan
->
setDirection
(
QAbstractAnimation
::
Forward
);
ContextView
*
v
=
static_cast
<
ContextView
*>
(
view
()
);
// Plasma::Applet::view() might return 0, if the widget is not yet constructed, etc.
// \sa https://bugs.kde.org/show_bug.cgi?id=258741
DEBUG_ASSERT
(
v
,
return
)
v
->
addCollapseAnimation
(
pan
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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