1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-17 19:37:09 +02:00

* Get rid of dupe qsrand()s. We do that on startup.

This commit is contained in:
Christian Muehlhaeuser
2011-07-25 03:26:58 +02:00
parent 0c5673ca79
commit 87531a7ac9
5 changed files with 8 additions and 18 deletions

View File

@@ -227,19 +227,17 @@ Connection::doSetup()
m_sock->moveToThread( thread() );
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
connect( m_sock.data(), SIGNAL( bytesWritten( qint64 ) ),
SLOT( bytesWritten( qint64 ) ), Qt::QueuedConnection );
connect( m_sock.data(), SIGNAL(bytesWritten(qint64)),
SLOT(bytesWritten(qint64)), Qt::QueuedConnection);
connect( m_sock.data(), SIGNAL( disconnected() ),
SLOT( socketDisconnected() ), Qt::QueuedConnection );
connect( m_sock.data(), SIGNAL(disconnected()),
SLOT(socketDisconnected()), Qt::QueuedConnection);
connect( m_sock.data(), SIGNAL( error( QAbstractSocket::SocketError ) ),
SLOT( socketDisconnectedError( QAbstractSocket::SocketError ) ), Qt::QueuedConnection );
connect( m_sock.data(), SIGNAL(error(QAbstractSocket::SocketError)),
SLOT(socketDisconnectedError(QAbstractSocket::SocketError)), Qt::QueuedConnection );
connect( m_sock.data(), SIGNAL(readyRead()),
SLOT(readyRead()), Qt::QueuedConnection);
connect( m_sock.data(), SIGNAL( readyRead() ),
SLOT( readyRead() ), Qt::QueuedConnection );
// if connection not authed/setup fast enough, kill it:
QTimer::singleShot( AUTH_TIMEOUT, this, SLOT( authCheckTimeout() ) );

View File

@@ -31,8 +31,6 @@ AlbumProxyModel::AlbumProxyModel( QObject* parent )
, m_repeatMode( PlaylistInterface::NoRepeat )
, m_shuffled( false )
{
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
setFilterCaseSensitivity( Qt::CaseInsensitive );
setSortCaseSensitivity( Qt::CaseInsensitive );
setDynamicSortFilter( true );

View File

@@ -33,8 +33,6 @@ TrackProxyModel::TrackProxyModel( QObject* parent )
, m_shuffled( false )
, m_showOfflineResults( true )
{
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
setFilterCaseSensitivity( Qt::CaseInsensitive );
setSortCaseSensitivity( Qt::CaseInsensitive );
setDynamicSortFilter( true );

View File

@@ -31,8 +31,6 @@ TreeProxyModel::TreeProxyModel( QObject* parent )
, m_repeatMode( PlaylistInterface::NoRepeat )
, m_shuffled( false )
{
qsrand( QTime( 0, 0, 0 ).secsTo( QTime::currentTime() ) );
setFilterCaseSensitivity( Qt::CaseInsensitive );
setSortCaseSensitivity( Qt::CaseInsensitive );
setDynamicSortFilter( true );

View File

@@ -71,8 +71,6 @@ JabberPlugin::JabberPlugin( const QString& pluginId )
{
qDebug() << Q_FUNC_INFO;
qsrand(QDateTime::currentDateTime().toTime_t());
m_configWidget = QWeakPointer< QWidget >( new QWidget );
m_ui = new Ui_JabberConfig;
m_ui->setupUi( m_configWidget.data() );