summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@intevation.de>2016-04-28 14:17:26 (GMT)
committerAndre Heinecke <aheinecke@intevation.de>2016-08-02 09:56:59 (GMT)
commit60e9f5d25b75e222ab8350aa9199a2267d097a00 (patch)
tree9ca6aa62437d0317135ef8672907b16484603ec9
parent1c351b7a75833b73ddf5931058b727c2f27ec86a (diff)
Handle operation changed from the sig/enc widget
-rw-r--r--src/crypto/gui/signencryptfileswizard.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/crypto/gui/signencryptfileswizard.cpp b/src/crypto/gui/signencryptfileswizard.cpp
index eb023b3..76010ab 100644
--- a/src/crypto/gui/signencryptfileswizard.cpp
+++ b/src/crypto/gui/signencryptfileswizard.cpp
@@ -95,6 +95,7 @@ public:
connect(mWidget, &SignEncryptWidget::operationChanged, this,
&SigEncPage::updateCommitButton);
setLayout(vLay);
+ updateCommitButton(mWidget->currentOp());
}
bool isComplete() const Q_DECL_OVERRIDE
@@ -160,7 +161,12 @@ public:
private Q_SLOTS:
void updateCommitButton(const QString &label)
{
- setButtonText(QWizard::CommitButton, label);
+ if (!label.isEmpty()) {
+ setButtonText(QWizard::CommitButton, label);
+ } else {
+ setButtonText(QWizard::CommitButton, i18n("Next"));
+ }
+ Q_EMIT completeChanged();
}
private: