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
8267d062
Commit
8267d062
authored
Jun 12, 2011
by
Kevin Funk
Browse files
Move assert to top of statement list
CCBUG: 258741
parent
e8359fcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/context/Applet.cpp
View file @
8267d062
...
...
@@ -298,6 +298,11 @@ Context::Applet::collapse( bool on )
return
;
}
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
)
// debug() << pluginName() << (on ? "collapsing to" : "uncollapsing to") << finalHeight;
QPropertyAnimation
*
pan
=
m_animation
.
data
();
if
(
!
pan
)
...
...
@@ -312,10 +317,6 @@ Context::Applet::collapse( bool on )
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