1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-09 23:57:34 +02:00

Don't load QML in an undefined state

This commit is contained in:
Dominik Schmidt
2011-09-08 04:25:42 +02:00
parent cbb44907f4
commit 6df1b9462f

View File

@@ -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";