From 6df1b9462fd948e7269d981536e56ee5f4590da6 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 8 Sep 2011 04:25:42 +0200 Subject: [PATCH] Don't load QML in an undefined state --- src/active/tomahawktouchwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/active/tomahawktouchwindow.cpp b/src/active/tomahawktouchwindow.cpp index a08d2b060..ad96b3f7a 100644 --- a/src/active/tomahawktouchwindow.cpp +++ b/src/active/tomahawktouchwindow.cpp @@ -112,6 +112,9 @@ TomahawkTouchWindow::loadQml() context->setContextProperty( "audioEngine", AudioEngine::instance() ); context->setContextProperty( "globalActionManager", GlobalActionManager::instance() ); context->setContextProperty( "sourcesModel", s_sourcesModel ); + + // don't start in an undefined state + delete m_currentPlaylistTreeModel; context->setContextProperty( "currentPlaylistTreeModel", m_currentPlaylistTreeModel ); tLog()<< Q_FUNC_INFO << "set source";