This commit is contained in:
@@ -3106,7 +3106,7 @@ void mainWindowImpl::localGameModification() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Set the playing mode to "manual"
|
//Set the playing mode to "manual"
|
||||||
playingMode = 0;
|
playingMode = 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva
|
|||||||
|
|
||||||
connect( checkBox_UseInternetGamePassword, SIGNAL( toggled(bool) ), this, SLOT( clearInternetGamePassword(bool)) );
|
connect( checkBox_UseInternetGamePassword, SIGNAL( toggled(bool) ), this, SLOT( clearInternetGamePassword(bool)) );
|
||||||
|
|
||||||
|
connect( spinBox_netFirstSmallBlind, SIGNAL( valueChanged(int) ), this, SLOT ( checkProperNetFirstSmallBlind(int)));
|
||||||
|
connect( spinBox_firstSmallBlind, SIGNAL( valueChanged(int) ), this, SLOT ( checkProperFirstSmallBlind(int)));
|
||||||
|
|
||||||
//temporarely unused until ai is enabled in network
|
//temporarely unused until ai is enabled in network
|
||||||
// label_36->hide();
|
// label_36->hide();
|
||||||
// spinBox_netGameSpeed->hide();
|
// spinBox_netGameSpeed->hide();
|
||||||
@@ -491,3 +494,25 @@ void settingsDialogImpl::callNetManualBlindsOrderDialog() {
|
|||||||
myNetAfterMBStayAtLastBlind = myManualBlindsOrderDialog->radioButton_stayAtLastBlind->isChecked();
|
myNetAfterMBStayAtLastBlind = myManualBlindsOrderDialog->radioButton_stayAtLastBlind->isChecked();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void settingsDialogImpl::checkProperNetFirstSmallBlind(int currentSB) {
|
||||||
|
|
||||||
|
if(currentSB > myNetManualBlindsList.front()) {
|
||||||
|
|
||||||
|
QMessageBox::warning(this, tr("Blinds Error"),
|
||||||
|
tr("The first element in your manual-blinds-list is smaller than the first-blind-value you want to set.\nPlease check your manual-blinds-list."),
|
||||||
|
QMessageBox::Close);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void settingsDialogImpl::checkProperFirstSmallBlind(int currentSB) {
|
||||||
|
|
||||||
|
if(currentSB > myManualBlindsList.front()) {
|
||||||
|
|
||||||
|
QMessageBox::warning(this, tr("Blinds Error"),
|
||||||
|
tr("The first element in your manual-blinds-list is smaller than the first-blind-value you want to set.\nPlease check your manual-blinds-list."),
|
||||||
|
QMessageBox::Close);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -68,6 +68,9 @@ public slots:
|
|||||||
|
|
||||||
void clearInternetGamePassword(bool);
|
void clearInternetGamePassword(bool);
|
||||||
|
|
||||||
|
void checkProperNetFirstSmallBlind(int);
|
||||||
|
void checkProperFirstSmallBlind(int);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user