mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-13 17:43:59 +02:00
Workaround preview widget flicker in column view
This commit is contained in:
@@ -118,6 +118,10 @@ ColumnView::setModel( QAbstractItemModel* model )
|
|||||||
void
|
void
|
||||||
ColumnView::setTreeModel( TreeModel* model )
|
ColumnView::setTreeModel( TreeModel* model )
|
||||||
{
|
{
|
||||||
|
// HACK: without setting a new preview widget, the old preview widget is shown in the first column while loading the artists.
|
||||||
|
m_previewWidget = new ColumnViewPreviewWidget( this );
|
||||||
|
setPreviewWidget( m_previewWidget );
|
||||||
|
|
||||||
m_model = model;
|
m_model = model;
|
||||||
|
|
||||||
if ( m_proxyModel )
|
if ( m_proxyModel )
|
||||||
|
Reference in New Issue
Block a user