aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/lyrics/lyricswindow.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-25 18:00:06 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2017-11-25 18:00:06 +0000
commit8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a (patch)
tree15d339b62e98d5858a57aa787334e14f0e2f0ad7 /src/plugins/General/lyrics/lyricswindow.cpp
parent6fc05db7c6de9a51beba754f12ff4ac32859977d (diff)
downloadqmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.tar.gz
qmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.tar.bz2
qmmp-8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a.zip
copy 1.2 branch to trunk
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7772 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/lyrics/lyricswindow.cpp')
-rw-r--r--src/plugins/General/lyrics/lyricswindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/General/lyrics/lyricswindow.cpp b/src/plugins/General/lyrics/lyricswindow.cpp
index c899e71bc..d914e1630 100644
--- a/src/plugins/General/lyrics/lyricswindow.cpp
+++ b/src/plugins/General/lyrics/lyricswindow.cpp
@@ -189,7 +189,7 @@ QString LyricsWindow::cacheFilePath() const
{
QString name = m_ui.artistLineEdit->text() + "_" + m_ui.titleLineEdit->text();
QByteArray hash = QCryptographicHash::hash(name.toUtf8(), QCryptographicHash::Md5);
- return m_cachePath + QString::fromLatin1(hash.toHex().constData()) + ".html";
+ return m_cachePath + QString::fromLatin1(hash.toHex()) + ".html";
}
bool LyricsWindow::loadFromCache()
@@ -205,7 +205,7 @@ bool LyricsWindow::loadFromCache()
return false;
}
- m_ui.textBrowser->setHtml(QString::fromUtf8(file.readAll().constData()));
+ m_ui.textBrowser->setHtml(QString::fromUtf8(file.readAll()));
m_ui.stateLabel->setText(tr("Done"));
return true;
}