mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Preferences: Always show Password Manager options
Show Password Manager options even when storing passwords on sites is disabled as Password Manager still works (it will complete already saved passwords).
This commit is contained in:
parent
89f3b18df3
commit
ae3aebc06c
@ -98,7 +98,6 @@ Preferences::Preferences(BrowserWindow* window)
|
||||
, m_window(window)
|
||||
, m_autoFillManager(0)
|
||||
, m_pluginsList(0)
|
||||
, m_autoFillEnabled(false)
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
ui->setupUi(this);
|
||||
@ -295,9 +294,6 @@ Preferences::Preferences(BrowserWindow* window)
|
||||
//PASSWORD MANAGER
|
||||
ui->allowPassManager->setChecked(settings.value("SavePasswordsOnSites", true).toBool());
|
||||
ui->autoCompletePasswords->setChecked(settings.value("AutoCompletePasswords", true).toBool());
|
||||
connect(ui->allowPassManager, SIGNAL(toggled(bool)), this, SLOT(showPassManager(bool)));
|
||||
|
||||
showPassManager(ui->allowPassManager->isChecked());
|
||||
|
||||
//PRIVACY
|
||||
//Web storage
|
||||
@ -583,7 +579,6 @@ void Preferences::showStackedPage(QListWidgetItem* item)
|
||||
if (index == 7 && !m_autoFillManager) {
|
||||
m_autoFillManager = new AutoFillManager(this);
|
||||
ui->autoFillFrame->addWidget(m_autoFillManager);
|
||||
m_autoFillManager->setVisible(m_autoFillEnabled);
|
||||
}
|
||||
}
|
||||
|
||||
@ -769,16 +764,6 @@ void Preferences::changeCachePathClicked()
|
||||
ui->cachePath->setText(path);
|
||||
}
|
||||
|
||||
void Preferences::showPassManager(bool state)
|
||||
{
|
||||
if (m_autoFillManager) {
|
||||
m_autoFillManager->setVisible(state);
|
||||
}
|
||||
else {
|
||||
m_autoFillEnabled = state;
|
||||
}
|
||||
}
|
||||
|
||||
void Preferences::buttonClicked(QAbstractButton* button)
|
||||
{
|
||||
switch (ui->buttonBox->buttonRole(button)) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* ============================================================
|
||||
* Falkon - Qt web browser
|
||||
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
|
||||
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -70,7 +71,6 @@ private slots:
|
||||
void allowHtml5storageChanged(bool state);
|
||||
void downLocChanged(bool state);
|
||||
void allowCacheChanged(bool state);
|
||||
void showPassManager(bool state);
|
||||
void setManualProxyConfigurationEnabled(bool state);
|
||||
void useExternalDownManagerChanged(bool state);
|
||||
void changeCachePathClicked();
|
||||
@ -105,7 +105,6 @@ private:
|
||||
int m_afterLaunch;
|
||||
int m_onNewTab;
|
||||
QPoint m_notifPosition;
|
||||
bool m_autoFillEnabled;
|
||||
};
|
||||
|
||||
#endif // PREFERENCES_H
|
||||
|
Loading…
Reference in New Issue
Block a user