[kde-doc-english] [trojita] src/Gui: GUI: fix enabling/disabling of UI widgets based on AUTH preferences
Jan Kundrát
jkt at flaska.net
Fri Apr 25 17:10:57 UTC 2014
Git commit f60797fb63037769d2bce78bf77275b930e761f7 by Jan Kundrát.
Committed on 25/04/2014 at 15:24.
Pushed by jkt into branch 'master'.
GUI: fix enabling/disabling of UI widgets based on AUTH preferences
M +4 -1 src/Gui/SettingsDialog.cpp
http://commits.kde.org/trojita/f60797fb63037769d2bce78bf77275b930e761f7
diff --git a/src/Gui/SettingsDialog.cpp b/src/Gui/SettingsDialog.cpp
index 03b9369..140f3bd 100644
--- a/src/Gui/SettingsDialog.cpp
+++ b/src/Gui/SettingsDialog.cpp
@@ -815,7 +815,8 @@ void OutgoingPage::updateWidgets()
smtpPort->setText(QString::number(Common::PORT_SMTP_SSL));
}
- passwordWarning->setVisible(!smtpPass->text().isEmpty() && authEnabled);
+ passwordWarning->setVisible(!smtpPass->text().isEmpty());
+ passwordWarning->setEnabled(authEnabled);
if (m_pwWatcher->isStorageEncrypted()) {
passwordWarning->setStyleSheet(QString());
passwordWarning->setText(trUtf8("This password will be saved in encrypted storage. "
@@ -829,6 +830,7 @@ void OutgoingPage::updateWidgets()
passwordPluginStatus->setVisible(authEnabled &&
(m_pwWatcher->isWaitingForPlugin() || !m_pwWatcher->didReadOk() || !m_pwWatcher->didWriteOk()));
passwordPluginStatus->setText(m_pwWatcher->progressMessage());
+ passwordPluginStatus->setEnabled(authEnabled);
smtpPass->setEnabled(!m_pwWatcher->isWaitingForPlugin() && authEnabled);
lay->labelForField(smtpPass)->setEnabled(!m_pwWatcher->isWaitingForPlugin() && authEnabled);
@@ -865,6 +867,7 @@ void OutgoingPage::updateWidgets()
}
smtpBurl->setEnabled(false);
lay->labelForField(smtpBurl)->setEnabled(false);
+ passwordPluginStatus->setVisible(false);
}
saveFolderName->setEnabled(saveToImap->isChecked());
More information about the kde-doc-english
mailing list