mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fixed crash when opening preferences and not loaded passwords manager
This commit is contained in:
parent
05ca29715f
commit
7001823511
@ -119,13 +119,15 @@ void PasswordManager::removeAllEntries()
|
||||
m_backend->removeAll();
|
||||
}
|
||||
|
||||
QHash<QString, PasswordBackend*> PasswordManager::availableBackends() const
|
||||
QHash<QString, PasswordBackend*> PasswordManager::availableBackends()
|
||||
{
|
||||
ensureLoaded();
|
||||
return m_backends;
|
||||
}
|
||||
|
||||
PasswordBackend* PasswordManager::activeBackend() const
|
||||
PasswordBackend* PasswordManager::activeBackend()
|
||||
{
|
||||
ensureLoaded();
|
||||
return m_backend;
|
||||
}
|
||||
|
||||
|
@ -72,8 +72,8 @@ public:
|
||||
void removeEntry(const PasswordEntry &entry);
|
||||
void removeAllEntries();
|
||||
|
||||
QHash<QString, PasswordBackend*> availableBackends() const;
|
||||
PasswordBackend* activeBackend() const;
|
||||
QHash<QString, PasswordBackend*> availableBackends();
|
||||
PasswordBackend* activeBackend();
|
||||
void switchBackend(PasswordBackend* backend);
|
||||
|
||||
bool registerBackend(const QString &id, PasswordBackend* backend);
|
||||
|
@ -65,6 +65,12 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
ui->setupUi(this);
|
||||
|
||||
m_themesManager = new ThemeManager(ui->themesWidget, this);
|
||||
m_autoFillManager = new AutoFillManager(this);
|
||||
ui->autoFillFrame->addWidget(m_autoFillManager);
|
||||
m_pluginsList = new PluginsManager(this);
|
||||
ui->pluginsFrame->addWidget(m_pluginsList);
|
||||
|
||||
if (QIcon::themeName().toLower() == QLatin1String("oxygen")) {
|
||||
ui->listWidget->item(0)->setIcon(QIcon::fromTheme("preferences-desktop", QIcon(":/icons/preferences/preferences-desktop.png")));
|
||||
ui->listWidget->item(1)->setIcon(QIcon::fromTheme("format-stroke-color", QIcon(":/icons/preferences/application-x-theme.png")));
|
||||
@ -177,7 +183,6 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||
startProfileIndexChanged(ui->startProfile->currentText());
|
||||
|
||||
//APPEREANCE
|
||||
m_themesManager = new ThemeManager(ui->themesWidget, this);
|
||||
settings.beginGroup("Browser-View-Settings");
|
||||
ui->showStatusbar->setChecked(settings.value("showStatusBar", true).toBool());
|
||||
if (p_QupZilla) {
|
||||
@ -276,8 +281,6 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||
ui->allowPassManager->setChecked(settings.value("SavePasswordsOnSites", true).toBool());
|
||||
connect(ui->allowPassManager, SIGNAL(toggled(bool)), this, SLOT(showPassManager(bool)));
|
||||
|
||||
m_autoFillManager = new AutoFillManager(this);
|
||||
ui->autoFillFrame->addWidget(m_autoFillManager);
|
||||
showPassManager(ui->allowPassManager->isChecked());
|
||||
|
||||
//PRIVACY
|
||||
@ -346,10 +349,6 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||
ui->loadSpeedDialsCtrl->setChecked(settings.value("useSpeedDialNumberShortcuts", true).toBool());
|
||||
settings.endGroup();
|
||||
|
||||
//PLUGINS
|
||||
m_pluginsList = new PluginsManager(this);
|
||||
ui->pluginsFrame->addWidget(m_pluginsList);
|
||||
|
||||
//NOTIFICATIONS
|
||||
ui->useNativeSystemNotifications->setEnabled(mApp->desktopNotifications()->supportsNativeNotifications());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user