mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-18 05:44:14 -05:00
Added to change the text for the Play Button, when file is not a media file.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6978 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
abd6b46ca0
commit
0e134d0a92
@ -213,8 +213,16 @@ void ChanMsgItem::updateItemStatic()
|
||||
|
||||
/* check if the file is a media file */
|
||||
if (!misc::isPreviewable(QFileInfo(QString::fromUtf8(it->fname.c_str())).suffix()))
|
||||
fi->mediatype();
|
||||
|
||||
{
|
||||
fi->mediatype();
|
||||
playButton->setText(tr("Open"));
|
||||
playButton->setToolTip(tr("Open File"));
|
||||
}
|
||||
else
|
||||
{
|
||||
playButton->setText(tr("Play"));
|
||||
playButton->setToolTip(tr("Play Media"));
|
||||
}
|
||||
|
||||
QLayout *layout = expandFrame->layout();
|
||||
layout->addWidget(fi);
|
||||
|
Loading…
x
Reference in New Issue
Block a user