From 9d702b3fcc6fa8db351e37f99e1fedf1f74e99d1 Mon Sep 17 00:00:00 2001 From: doitux Date: Sun, 30 Sep 2007 11:15:03 +0000 Subject: [PATCH] --- src/gui/qt/mainwindow/mainwindowimpl.cpp | 2 +- .../qt/settingsdialog/settingsdialogimpl.cpp | 25 +++++++++++++++++++ .../qt/settingsdialog/settingsdialogimpl.h | 3 +++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/gui/qt/mainwindow/mainwindowimpl.cpp b/src/gui/qt/mainwindow/mainwindowimpl.cpp index 6006fd47..5f80b4b2 100755 --- a/src/gui/qt/mainwindow/mainwindowimpl.cpp +++ b/src/gui/qt/mainwindow/mainwindowimpl.cpp @@ -3106,7 +3106,7 @@ void mainWindowImpl::localGameModification() { } //Set the playing mode to "manual" - playingMode = 0; + playingMode = 1; } diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp index c3532277..9a9feaea 100644 --- a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp +++ b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp @@ -63,6 +63,9 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva 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 // label_36->hide(); // spinBox_netGameSpeed->hide(); @@ -491,3 +494,25 @@ void settingsDialogImpl::callNetManualBlindsOrderDialog() { 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); + } +} diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.h b/src/gui/qt/settingsdialog/settingsdialogimpl.h index d8fc8615..1d805505 100644 --- a/src/gui/qt/settingsdialog/settingsdialogimpl.h +++ b/src/gui/qt/settingsdialog/settingsdialogimpl.h @@ -67,6 +67,9 @@ public slots: void callSelectAvatarDialog() { mySelectAvatarDialogImpl->exec(); } void clearInternetGamePassword(bool); + + void checkProperNetFirstSmallBlind(int); + void checkProperFirstSmallBlind(int); private: