mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 00:24:12 +02:00
* Don't restore settings if the TrackView's guid didn't actually change.
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
#include "utils/PixmapDelegateFader.h"
|
||||
#endif
|
||||
|
||||
|
||||
#include <QKeyEvent>
|
||||
#include <QPainter>
|
||||
#include <QScrollBar>
|
||||
@@ -130,6 +129,9 @@ TrackView::guid() const
|
||||
void
|
||||
TrackView::setGuid( const QString& newguid )
|
||||
{
|
||||
if ( newguid == m_guid )
|
||||
return;
|
||||
|
||||
if ( !newguid.isEmpty() )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "Setting guid on header" << newguid << "for a view with" << m_proxyModel->columnCount() << "columns";
|
||||
|
Reference in New Issue
Block a user