Commit 7ff8068a authored by Matěj Laitl's avatar Matěj Laitl
Browse files

Hopefully fix crash in ContextView on startup

It is strange that simple initialization to zero fixes the problem, but
it fixes the crash for at least one reporter.

Reporters, please rebuild Amarok from current git and should loudly if
you can still reproduce the bug.

BUGFIXES:
 * Fix crash on startup related to ContextView

BUG: 258741
FIXED-IN: 2.6
DIGEST: Amarok crashfix
parent 9070ceb7
......@@ -86,6 +86,7 @@ VERSION 2.6-Beta 1
"1.2 GB free" is shown instead of "85% used"; thicker capacity bar.
BUGFIXES:
* Fix crash on startup related to ContextView. (BR 258741)
* Fix dragging of "No Labels" and "Various Artists" collection tree items.
* Don't add duplicates to playlist when dragging from collection. (BR 254411)
* Fix crash related to DAAP collection. (BR 280774)
......
......@@ -49,8 +49,10 @@ ContextView* ContextView::s_self = 0;
ContextView::ContextView( Plasma::Containment *cont, Plasma::Corona *corona, QWidget* parent )
: Plasma::View( cont, parent )
, m_curState( Home )
, m_urlRunner(0)
, m_appletExplorer(0)
, m_collapseAnimations(0)
, m_queuedAnimations(0)
, m_collapseGroupTimer(0)
{
Q_UNUSED( corona )
......
......@@ -60,7 +60,7 @@ public:
/**
* Singleton pattern accessor.
*/
static ContextView* self() { return s_self; }
static ContextView* self() { Q_ASSERT( s_self ); return s_self; }
/**
Returns the context scene that this view is attached to.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment