summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <kde@opensource.sf-tec.de>2012-07-13 19:47:05 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2012-07-13 19:47:38 (GMT)
commit17eb185ca80b028d86a5c24da6d88121a5037de6 (patch)
tree9421673600da8e29fc97f13ddd62ad5ba59e5a2e
parent2d33b67b840ad49222d29566e6676ec9089c2db9 (diff)
set correct initial state in the key lifetime date picker if key has unlimited lifetime
-rw-r--r--selectexpirydate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/selectexpirydate.cpp b/selectexpirydate.cpp
index e24114a..83e7132 100644
--- a/selectexpirydate.cpp
+++ b/selectexpirydate.cpp
@@ -31,6 +31,7 @@ SelectExpiryDate::SelectExpiryDate(QWidget* parent, QDateTime date)
QWidget *page = new QWidget(this);
m_unlimited = new QCheckBox(i18nc("Key has unlimited lifetime", "Unlimited"), page);
+ m_unlimited->setChecked(date.isNull());
if (date.isNull())
date = QDateTime::currentDateTime();
@@ -52,6 +53,8 @@ SelectExpiryDate::SelectExpiryDate(QWidget* parent, QDateTime date)
setMainWidget(page);
show();
+
+ slotEnableDate(m_unlimited->isChecked());
}
QDateTime SelectExpiryDate::date() const