servermessages via id implemented

This commit is contained in:
doitux
2011-01-10 21:40:48 +00:00
parent a2df4b2655
commit 6028ae57b7
8 changed files with 35 additions and 3 deletions
+3 -3
View File
@@ -216,9 +216,9 @@ void MyAvatarLabel::reportBadAvatar() {
QString nick = QString::fromUtf8((*it_c)->getMyName().c_str());
int ret = QMessageBox::question(this, tr("PokerTH - Question"),
tr("Are you sure you want to report the avatar of \"%1\" as inappropriate?").arg(nick),
QMessageBox::Yes | QMessageBox::No);
if(ret) {
tr("Are you sure you want to report the avatar of \"%1\" as inappropriate?").arg(nick), QMessageBox::Yes | QMessageBox::No);
if(ret == QMessageBox::Yes) {
QFileInfo fi(avatar);
myW->getSession()->reportBadAvatar((*it_c)->getMyUniqueID(), fi.baseName().toStdString());
}