diff -ru kdelibs-3.5.3-orig/khtml/html/html_formimpl.cpp kdelibs-3.5.3/khtml/html/html_formimpl.cpp --- kdelibs-3.5.3-orig/khtml/html/html_formimpl.cpp 2006-05-22 14:14:03.000000000 -0400 +++ kdelibs-3.5.3/khtml/html/html_formimpl.cpp 2006-07-29 13:20:34.000000000 -0400 @@ -605,39 +605,7 @@ } if ( doesnotexist || !w || login_changed ) { - // TODO use KMessageBox::questionYesNoCancel() again, if you can pass a KGuiItem for Cancel - KDialogBase* const dialog = new KDialogBase(i18n("Save Login Information"), - KDialogBase::Yes | KDialogBase::No | KDialogBase::Cancel, - KDialogBase::Yes, KDialogBase::Cancel, - 0, "questionYesNoCancel", true, true, - i18n("Store"), KGuiItem(i18n("Ne&ver for This Site")), i18n("Do Not Store")); - - bool checkboxResult = false; - const int savePassword = KMessageBox::createKMessageBox(dialog, QMessageBox::Information, - formUrl.host().isEmpty() ? // e.g. local file - i18n("Konqueror has the ability to store the password " - "in an encrypted wallet. When the wallet is unlocked, it " - "can then automatically restore the login information " - "next time you submit this form. Do you want to store " - "the information now?") : - i18n("Konqueror has the ability to store the password " - "in an encrypted wallet. When the wallet is unlocked, it " - "can then automatically restore the login information " - "next time you visit %1. Do you want to store " - "the information now?").arg(formUrl.host()), - QStringList(), QString::null, &checkboxResult, KMessageBox::Notify); - - if ( savePassword == KDialogBase::Yes ) { - // ensure that we have the user / password inside the url - // otherwise we might have a potential security problem - // by saving passwords under wrong lookup key. - - if (view->part()) { - view->part()->saveToWallet(key, m_walletMap); - } - } else if ( savePassword == KDialogBase::No ) { view->addNonPasswordStorableSite(formUrl.host()); - } } } #endif // KHTML_NO_WALLET