diff --git a/src/config/configfile.cpp b/src/config/configfile.cpp
index edb27c3a..9442b04a 100644
--- a/src/config/configfile.cpp
+++ b/src/config/configfile.cpp
@@ -50,7 +50,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
myConfigState = OK;
// !!!! Revisionsnummer der Configdefaults !!!!!
- configRev = 84;
+ configRev = 85;
//standard defaults
logOnOffDefault = "1";
@@ -266,6 +266,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
configList.push_back(ConfigInfo("DlgGameLobbyGameListSortingSection", CONFIG_TYPE_INT, "2"));
configList.push_back(ConfigInfo("DlgGameLobbyGameListSortingOrder", CONFIG_TYPE_INT, "1"));
configList.push_back(ConfigInfo("DlgGameLobbyGameListFilterIndex", CONFIG_TYPE_INT, "0"));
+ configList.push_back(ConfigInfo("DlgGameLobbyNickListSortFilterIndex", CONFIG_TYPE_INT, "0"));
configList.push_back(ConfigInfo("GameTableFullScreenSave", CONFIG_TYPE_INT, "0"));
configList.push_back(ConfigInfo("GameTableHeightSave", CONFIG_TYPE_INT, "600"));
configList.push_back(ConfigInfo("GameTableWidthSave", CONFIG_TYPE_INT, "1024"));
diff --git a/src/gui/qt/gamelobbydialog.ui b/src/gui/qt/gamelobbydialog.ui
index 9353cb61..0fd8d5c1 100644
--- a/src/gui/qt/gamelobbydialog.ui
+++ b/src/gui/qt/gamelobbydialog.ui
@@ -851,12 +851,12 @@ p, li { white-space: pre-wrap; }
-
- Sort by flag
+ Sort by country
-
- Filter idle players
+ Display idle players
diff --git a/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp b/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp
index 96fc47bd..6fc2d26c 100644
--- a/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp
+++ b/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp
@@ -1271,9 +1271,6 @@ void gameLobbyDialogImpl::writeDialogSettings(int saveMode)
{
switch(saveMode) {
case 0: {
- // myConfig->writeConfigInt("DlgGameLobbyGameListSortingSection", myGameListSortFilterProxyModel->sortColumn());
- // myConfig->writeConfigInt("DldgGameLobbyGameListSortingOrder", myGameListSortFilterProxyModel->sortOrder());
- // qt 4.4.* compatibility
QHeaderView *header = treeView_GameList->header();
myConfig->writeConfigInt("DlgGameLobbyGameListSortingSection", header->sortIndicatorSection());
myConfig->writeConfigInt("DlgGameLobbyGameListSortingOrder", header->sortIndicatorOrder());
@@ -1283,8 +1280,13 @@ void gameLobbyDialogImpl::writeDialogSettings(int saveMode)
myConfig->writeConfigInt("DlgGameLobbyGameListFilterIndex", comboBox_gameListFilter->currentIndex());
}
break;
+ case 2: {
+ myConfig->writeConfigInt("DlgGameLobbyNickListSortFilterIndex", comboBox_nickListFilter->currentIndex());
+ }
+ break;
default:;
}
+
myConfig->writeBuffer();
}
@@ -1292,6 +1294,7 @@ void gameLobbyDialogImpl::readDialogSettings()
{
comboBox_gameListFilter->setCurrentIndex(myConfig->readConfigInt("DlgGameLobbyGameListFilterIndex"));
treeView_GameList->sortByColumn(myConfig->readConfigInt("DlgGameLobbyGameListSortingSection"), (Qt::SortOrder)myConfig->readConfigInt("DlgGameLobbyGameListSortingOrder") );
+ comboBox_nickListFilter->setCurrentIndex(myConfig->readConfigInt("DlgGameLobbyNickListSortFilterIndex"));
}
void gameLobbyDialogImpl::changeGameListFilter(int index) {
@@ -1331,50 +1334,7 @@ void gameLobbyDialogImpl::changeGameListFilter(int index) {
myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp());
myGameListSortFilterProxyModel->setColumn4RegExp(QRegExp("private", Qt::CaseInsensitive, QRegExp::FixedString));
}
-
break;
- // case 5: {
- // myGameListSortFilterProxyModel->setColumn1RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn2RegExp(QRegExp("open", Qt::CaseInsensitive, QRegExp::FixedString));
- // myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp("nonpriv", Qt::CaseInsensitive, QRegExp::FixedString));
- // }
- // break;
- // case 6: {
- // myGameListSortFilterProxyModel->setColumn1RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn2RegExp(QRegExp("open", Qt::CaseInsensitive, QRegExp::FixedString));
- // myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp("private", Qt::CaseInsensitive, QRegExp::FixedString));
- // }
- // break;
- // case 7: {
- // myGameListSortFilterProxyModel->setColumn1RegExp(QRegExp("nonfull", Qt::CaseInsensitive, QRegExp::FixedString));
- // myGameListSortFilterProxyModel->setColumn2RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp());
- // }
- // break;
- // case 8: {
- // myGameListSortFilterProxyModel->setColumn1RegExp(QRegExp("nonfull", Qt::CaseInsensitive, QRegExp::FixedString));
- // myGameListSortFilterProxyModel->setColumn2RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp("nonpriv", Qt::CaseInsensitive, QRegExp::FixedString));
- // }
- // break;
- // case 9: {
- // myGameListSortFilterProxyModel->setColumn1RegExp(QRegExp("nonfull", Qt::CaseInsensitive, QRegExp::FixedString));
- // myGameListSortFilterProxyModel->setColumn2RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp("private", Qt::CaseInsensitive, QRegExp::FixedString));
- // }
- // break;
- // case 10: {
- // myGameListSortFilterProxyModel->setColumn1RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn2RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp("nonpriv", Qt::CaseInsensitive, QRegExp::FixedString));
- // }
- // break;
- // case 11: {
- // myGameListSortFilterProxyModel->setColumn1RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn2RegExp(QRegExp());
- // myGameListSortFilterProxyModel->setColumn3RegExp(QRegExp("private", Qt::CaseInsensitive, QRegExp::FixedString));
- // }
- // break;
default:;
}
myGameListSortFilterProxyModel->setFilterRegExp(QString());
@@ -1395,21 +1355,7 @@ void gameLobbyDialogImpl::changeNickListFilter(int state)
myNickListSortFilterProxyModel->setFilterRegExp(QString());
myNickListSortFilterProxyModel->setFilterKeyColumn(0);
-// switch(state) {
-// case 0: {
-//
-// }
-// break;
-// case 1: {
-//
-// }
-// break;
-// case 2: {
-//
-// }
-// break;
-// }
-
+ writeDialogSettings(2);
}
void gameLobbyDialogImpl::changeGameListSorting() {
@@ -1417,41 +1363,6 @@ void gameLobbyDialogImpl::changeGameListSorting() {
writeDialogSettings(0);
}
-//-
-//
-// 5 - Show open & non-private games
-//
-//
-// -
-//
-// 6 - Show open & private games
-//
-//
-// -
-//
-// 7 - Show non-full games
-//
-//
-// -
-//
-// 8 - Show non-full & non-private games
-//
-//
-// -
-//
-// 9 - Show non-full & private games
-//
-//
-// -
-//
-// 10 - Show non-private games
-//
-//
-// -
-//
-// 11 - Show private games
-//
-//
void gameLobbyDialogImpl::registeredUserMode()
{