add confirm close gametable patch
This commit is contained in:
@@ -2602,9 +2602,9 @@ void gameTableImpl::keyPressEvent ( QKeyEvent * event ) {
|
|||||||
ctrlPressed = TRUE;
|
ctrlPressed = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (event->key() == Qt::Key_Escape && (myActionIsBet || myActionIsRaise)) {
|
// if (event->key() == Qt::Key_Escape && (myActionIsBet || myActionIsRaise)) {
|
||||||
// meInAction();
|
// meInAction();
|
||||||
// }
|
// }
|
||||||
if (event->key() == Qt::Key_Up && lineEdit_ChatInput->hasFocus()) {
|
if (event->key() == Qt::Key_Up && lineEdit_ChatInput->hasFocus()) {
|
||||||
if((keyUpDownChatCounter + 1) <= myChat->getChatLinesHistorySize()) { keyUpDownChatCounter++; }
|
if((keyUpDownChatCounter + 1) <= myChat->getChatLinesHistorySize()) { keyUpDownChatCounter++; }
|
||||||
// std::cout << "Up keyUpDownChatCounter: " << keyUpDownChatCounter << "\n";
|
// std::cout << "Up keyUpDownChatCounter: " << keyUpDownChatCounter << "\n";
|
||||||
@@ -2971,11 +2971,23 @@ void gameTableImpl::closeGameTable() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
myStartWindow->getSession()->terminateNetworkClient();
|
|
||||||
stopTimer();
|
bool close = true;
|
||||||
saveGameTableGeometry();
|
myMessageDialogImpl dialog(myConfig, this);
|
||||||
myStartWindow->show();
|
if(dialog.checkIfMesssageWillBeDisplayed(6) && (myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_INTERNET || myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_NETWORK )) {
|
||||||
this->hide();
|
if (dialog.exec(6, tr("Really want to exit?"), tr("PokerTH - Close Table?"), QPixmap(":/gfx/logoChip3D.png"), QDialogButtonBox::Yes|QDialogButtonBox::No, true) == QDialog::Rejected) {
|
||||||
|
close = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(close) {
|
||||||
|
//now really close the table
|
||||||
|
myStartWindow->getSession()->terminateNetworkClient();
|
||||||
|
stopTimer();
|
||||||
|
saveGameTableGeometry();
|
||||||
|
myStartWindow->show();
|
||||||
|
this->hide();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,3 +54,4 @@ private:
|
|||||||
//3: reciev invite to game: Question(You've been invited to the game <b>%1</b> by <b>%2</b>.<br>Do you want to join this game?)
|
//3: reciev invite to game: Question(You've been invited to the game <b>%1</b> by <b>%2</b>.<br>Do you want to join this game?)
|
||||||
//4: click ignore player: Question(Do you really want to put this player on ignore List?)
|
//4: click ignore player: Question(Do you really want to put this player on ignore List?)
|
||||||
//5: add a broken (fields missing) game table style: Info(Selected game table style \"%1\" seems to be incomplete or defective. \n\nThe value(s) of \"%2\" is/are missing. \n\nPlease contact the game table style builder %3.)
|
//5: add a broken (fields missing) game table style: Info(Selected game table style \"%1\" seems to be incomplete or defective. \n\nThe value(s) of \"%2\" is/are missing. \n\nPlease contact the game table style builder %3.)
|
||||||
|
//6: close gametable: Do you really wanna quit?
|
||||||
|
|||||||
Reference in New Issue
Block a user