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:
@@ -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() ) );
|
||||
|
@@ -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 );
|
||||
|
@@ -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 );
|
||||
|
@@ -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 );
|
||||
|
@@ -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() );
|
||||
|
Reference in New Issue
Block a user