diff options
| author | Anton <anton@picapica> | 2018-07-03 17:07:10 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2018-07-03 17:07:10 +0400 |
| commit | cb2b4d833d4852a3e54cdb2394422ad7aeb24166 (patch) | |
| tree | f500e0c11e983b19fb98001b37ea884b845a312b /pica-client/dialogs | |
| parent | d154f1f79ddce2bdccc0c600251c5e2e7df3d14f (diff) | |
| download | pica-pica-cb2b4d833d4852a3e54cdb2394422ad7aeb24166.tar.gz pica-pica-cb2b4d833d4852a3e54cdb2394422ad7aeb24166.zip | |
add multilogin policy to protocol and client settings
Diffstat (limited to 'pica-client/dialogs')
| -rw-r--r-- | pica-client/dialogs/settingsdialog.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pica-client/dialogs/settingsdialog.cpp b/pica-client/dialogs/settingsdialog.cpp index 287569d..6850f5e 100644 --- a/pica-client/dialogs/settingsdialog.cpp +++ b/pica-client/dialogs/settingsdialog.cpp @@ -2,6 +2,7 @@ #include "../settings.h" #include "../globals.h" #include "../../PICA_netconf.h" +#include "../../PICA_proto.h" #include <QGroupBox> #include <QVBoxLayout> @@ -216,15 +217,15 @@ void SettingsDialog::loadSettings() switch(mlpstate) { - case 0: + case PICA_MULTILOGIN_PROHIBIT: rbMLPProhibit->setChecked(true); break; - case 1: + case PICA_MULTILOGIN_REPLACE: rbMLPReplace->setChecked(true); break; - case 2: + case PICA_MULTILOGIN_ALLOW: rbMLPAllowMultiple->setChecked(true); break; @@ -262,11 +263,11 @@ void SettingsDialog::storeSettings() int mlpstate; if (rbMLPProhibit->isChecked()) - mlpstate = 0; + mlpstate = PICA_MULTILOGIN_PROHIBIT; else if (rbMLPReplace->isChecked()) - mlpstate = 1; + mlpstate = PICA_MULTILOGIN_REPLACE; else if (rbMLPAllowMultiple->isChecked()) - mlpstate = 2; + mlpstate = PICA_MULTILOGIN_ALLOW; st.storeValue("multiple_logins.state", QString::number(mlpstate)); } |
