Ticket #50143: patch-drop-authentication.diff

File patch-drop-authentication.diff, 1.4 KB (added by RJVB (René Bertin), 8 years ago)
  • src/konfigurator/

    old new  
    6060                     QStringLiteral(),
    6161                     QStringLiteral("staikos@kde.org"));
    6262    setAboutData(about);
    63     setNeedsAuthorization(true);
     63    setNeedsAuthorization(false);
    6464
    6565    QVBoxLayout *vbox = new QVBoxLayout(this);
    6666    //PORT QT5 vbox->setSpacing(KDialog::spacingHint());
     
    267267    QVariantMap args;
    268268    KAuth::Action action = authAction();
    269269    if (!action.isValid()) {
    270         qDebug() << "There's no authAction, not saving settings";
    271         return;
    272     }
    273     action.setArguments(args);
     270//         qDebug() << "There's no authAction, not saving settings";
     271//         return;
     272    } else {
     273        action.setArguments(args);
    274274
    275     KAuth::ExecuteJob *j = action.execute();
     275        KAuth::ExecuteJob *j = action.execute();
    276276
    277     if (!j->exec()) {
    278         qDebug() << j->errorText();
    279         KMessageBox::error(this, j->errorString(), i18n("KDE Wallet Control Module"));
    280         load();
    281         return;
     277        if (!j->exec()) {
     278            qDebug() << j->errorText();
     279            KMessageBox::error(this, j->errorString(), i18n("KDE Wallet Control Module"));
     280            load();
     281            return;
     282        }
    282283    }
    283284
    284285    KConfigGroup config(_cfg, "Wallet");