Commit a7d05788 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated Qt API

parent 64c0d04c
......@@ -115,7 +115,7 @@ void TrackListDBusHandler::SetRandom( bool enable )
//sucky randomness, but we don't care the playlist is really cryptographically secure..
if (m_random) {
qsrand(QDateTime::currentDateTime().toTime_t());
qsrand(QTime::currentTime().msec());
}
}
......
......@@ -158,7 +158,7 @@ static QString determineNewDesktopFilePath(const QString &baseName)
while (QFile::exists(desktopFilePath)) {
if (appendix.isEmpty()) {
qsrand(QDateTime::currentDateTime().toTime_t());
qsrand(QTime::currentTime().msec());
appendix += QLatin1Char('-');
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment