Added notification if a new release or beta release of PokerTH is available.
Removed last traces of deprecated blind values.
This commit is contained in:
@@ -186,7 +186,7 @@ void gameLobbyDialogImpl::gameSelected(QTreeWidgetItem* item, QTreeWidgetItem*)
|
||||
GameInfo info(mySession->getClientGameInfo(item->data(0, Qt::UserRole).toUInt()));
|
||||
|
||||
hideShowGameDescription(TRUE);
|
||||
label_SmallBlind->setText(QString::number(info.data.smallBlind));
|
||||
label_SmallBlind->setText(QString::number(info.data.firstSmallBlind));
|
||||
label_StartCash->setText(QString::number(info.data.startMoney));
|
||||
label_MaximumNumberOfPlayers->setText(QString::number(info.data.maxNumberOfPlayers));
|
||||
|
||||
|
||||
@@ -3583,6 +3583,18 @@ void mainWindowImpl::networkNotification(int notificationId)
|
||||
tr("Invalid password when joining the game.\nPlease reenter the password and try again."),
|
||||
QMessageBox::Close); }
|
||||
break;
|
||||
case NTF_NET_NEW_RELEASE_AVAILABLE:
|
||||
// TODO use dialog with link to pokerth.net
|
||||
{ QMessageBox::information(this, tr("Network Notification"),
|
||||
tr("A new release of PokerTH is available. Please go to http://www.pokerth.net/ and download the latest version."),
|
||||
QMessageBox::Close); }
|
||||
break;
|
||||
case NTF_NET_OUTDATED_BETA:
|
||||
// TODO use dialog with link to pokerth.net
|
||||
{ QMessageBox::information(this, tr("Network Notification"),
|
||||
tr("This beta release of PokerTH is outdated. Please go to http://www.pokerth.net/ and download the latest version."),
|
||||
QMessageBox::Close); }
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3781,7 +3793,7 @@ void mainWindowImpl::mouseOverFlipCards(bool front) {
|
||||
}
|
||||
}
|
||||
|
||||
void mainWindowImpl::closeEvent(QCloseEvent */*event*/) { quitPokerTH(); }
|
||||
void mainWindowImpl::closeEvent(QCloseEvent * /*event*/) { quitPokerTH(); }
|
||||
|
||||
void mainWindowImpl::quitPokerTH() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user