mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-03 10:53:39 +02:00
Merge branch 'master' into qmlstation
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -151,7 +151,7 @@ void
|
|||||||
TomahawkApp::installTranslator()
|
TomahawkApp::installTranslator()
|
||||||
{
|
{
|
||||||
#if QT_VERSION >= 0x040800
|
#if QT_VERSION >= 0x040800
|
||||||
QString locale = QLocale::system().uiLanguages().first();
|
QString locale = QLocale::system().uiLanguages().first().replace( "-", "_" );
|
||||||
#else
|
#else
|
||||||
QString locale = QLocale::system().name();
|
QString locale = QLocale::system().name();
|
||||||
#endif
|
#endif
|
||||||
|
@@ -537,6 +537,8 @@ PlayableProxyModel::data( const QModelIndex& index, int role ) const
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
if ( !m_headerStyle.contains( m_style ) )
|
if ( !m_headerStyle.contains( m_style ) )
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
if ( index.column() < 0 )
|
||||||
|
return QVariant();
|
||||||
|
|
||||||
PlayableModel::Columns col = m_headerStyle[ m_style ].at( index.column() );
|
PlayableModel::Columns col = m_headerStyle[ m_style ].at( index.column() );
|
||||||
QModelIndex sourceIdx = mapToSource( index );
|
QModelIndex sourceIdx = mapToSource( index );
|
||||||
|
Reference in New Issue
Block a user