Changeset View
Changeset View
Standalone View
Standalone View
AuthDialog.cpp
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | |||||
209 | } | 209 | } | ||
210 | 210 | | |||
211 | void AuthDialog::createUserCB(const PolkitQt1::Identity::List &identities) | 211 | void AuthDialog::createUserCB(const PolkitQt1::Identity::List &identities) | ||
212 | { | 212 | { | ||
213 | /* if we've already built the list of admin users once, then avoid | 213 | /* if we've already built the list of admin users once, then avoid | ||
214 | * doing it again.. (this is mainly used when the user entered the | 214 | * doing it again.. (this is mainly used when the user entered the | ||
215 | * wrong password and the dialog is recycled) | 215 | * wrong password and the dialog is recycled) | ||
216 | */ | 216 | */ | ||
217 | | ||||
217 | if (identities.count() && (userCB->count() - 1) != identities.count()) { | 218 | if (identities.count() && (userCB->count() - 1) != identities.count()) { | ||
218 | // Clears the combobox in the case some user be added | 219 | // Clears the combobox in the case some user be added | ||
219 | userCB->clear(); | 220 | userCB->clear(); | ||
220 | 221 | | |||
221 | // Adds a Dummy user | 222 | // Adds a Dummy user | ||
222 | userCB->addItem(i18n("Select User"), QString()); | 223 | userCB->addItem(i18n("Select User"), QString()); | ||
223 | qobject_cast<QStandardItemModel *>(userCB->model())->item(userCB->count()-1)->setEnabled(false); | 224 | qobject_cast<QStandardItemModel *>(userCB->model())->item(userCB->count()-1)->setEnabled(false); | ||
224 | 225 | | |||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |