cardInfoPopup fix; chatView fix

This commit is contained in:
Max-Wilhelm Bruker 2011-06-28 02:37:49 +02:00
parent 9f098f2a6d
commit 0120d2a019
13 changed files with 38 additions and 25 deletions

View file

@ -21,10 +21,12 @@ void Tab::showCardInfoPopup(const QPoint &pos, const QString &cardName)
infoPopup->show();
}
void Tab::deleteCardInfoPopup()
void Tab::deleteCardInfoPopup(const QString &cardName)
{
if (infoPopup) {
infoPopup->deleteLater();
infoPopup = 0;
if ((infoPopup->getCardName() == cardName) || (cardName == "_")) {
infoPopup->deleteLater();
infoPopup = 0;
}
}
}