mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
Don't load QML in an undefined state
This commit is contained in:
@@ -112,6 +112,9 @@ TomahawkTouchWindow::loadQml()
|
|||||||
context->setContextProperty( "audioEngine", AudioEngine::instance() );
|
context->setContextProperty( "audioEngine", AudioEngine::instance() );
|
||||||
context->setContextProperty( "globalActionManager", GlobalActionManager::instance() );
|
context->setContextProperty( "globalActionManager", GlobalActionManager::instance() );
|
||||||
context->setContextProperty( "sourcesModel", s_sourcesModel );
|
context->setContextProperty( "sourcesModel", s_sourcesModel );
|
||||||
|
|
||||||
|
// don't start in an undefined state
|
||||||
|
delete m_currentPlaylistTreeModel;
|
||||||
context->setContextProperty( "currentPlaylistTreeModel", m_currentPlaylistTreeModel );
|
context->setContextProperty( "currentPlaylistTreeModel", m_currentPlaylistTreeModel );
|
||||||
|
|
||||||
tLog()<< Q_FUNC_INFO << "set source";
|
tLog()<< Q_FUNC_INFO << "set source";
|
||||||
|
Reference in New Issue
Block a user