From a6452dbeee14a065212607ad8603ed65d04054df Mon Sep 17 00:00:00 2001 From: Casey Link Date: Wed, 31 Aug 2011 16:39:09 -0500 Subject: [PATCH] A little hack to force the second crumb to automatically expand. --- src/libtomahawk/widgets/whatshotwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libtomahawk/widgets/whatshotwidget.cpp b/src/libtomahawk/widgets/whatshotwidget.cpp index 646087c1a..521ab80d8 100644 --- a/src/libtomahawk/widgets/whatshotwidget.cpp +++ b/src/libtomahawk/widgets/whatshotwidget.cpp @@ -183,6 +183,9 @@ WhatsHotWidget::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestDat KBreadcrumbSelectionModel *selectionModelLeft = new KBreadcrumbSelectionModel(new QItemSelectionModel(m_crumbModelLeft, this), this); ui->breadCrumbLeft->setSelectionModel(selectionModelLeft); ui->breadCrumbRight->setSelectionModel(selectionModelLeft); + //HACK ALERT - we want the second crumb to expand right away, so we + //force it here. We should find a more elegant want to do this + ui->breadCrumbLeft->currentChangedTriggered(m_crumbModelLeft->index(0,0).child(0,0)); break; } case InfoSystem::InfoChartArtists: