mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 08:34:34 +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"
|
#include "utils/PixmapDelegateFader.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
@@ -130,6 +129,9 @@ TrackView::guid() const
|
|||||||
void
|
void
|
||||||
TrackView::setGuid( const QString& newguid )
|
TrackView::setGuid( const QString& newguid )
|
||||||
{
|
{
|
||||||
|
if ( newguid == m_guid )
|
||||||
|
return;
|
||||||
|
|
||||||
if ( !newguid.isEmpty() )
|
if ( !newguid.isEmpty() )
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO << "Setting guid on header" << newguid << "for a view with" << m_proxyModel->columnCount() << "columns";
|
tDebug() << Q_FUNC_INFO << "Setting guid on header" << newguid << "for a view with" << m_proxyModel->columnCount() << "columns";
|
||||||
|
Reference in New Issue
Block a user