diff options
author | Tobias Hunger <tobias.hunger@gmail.com> | 2015-05-05 16:26:26 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-05-12 12:07:40 +0000 |
commit | bbf2d599815cb91ccc383fda2c4f19b82800e0c8 (patch) | |
tree | 51839922831a22edede1b298c061bab5e608d9b5 /src/libs/utils/shellcommandpage.cpp | |
parent | 1b1d97f9ed63f72fe0d559e356440fa00635e5ea (diff) |
ShellCommandPage: Disable/enable back button
Change-Id: I19bed185ea89d47871efd07b34cc99b4739b7659
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/libs/utils/shellcommandpage.cpp')
-rw-r--r-- | src/libs/utils/shellcommandpage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/utils/shellcommandpage.cpp b/src/libs/utils/shellcommandpage.cpp index 8cc6fcf229..9185939f1a 100644 --- a/src/libs/utils/shellcommandpage.cpp +++ b/src/libs/utils/shellcommandpage.cpp @@ -34,6 +34,7 @@ #include "qtcassert.h" #include "theme/theme.h" +#include <QAbstractButton> #include <QApplication> #include <QLabel> #include <QPlainTextEdit> @@ -101,6 +102,8 @@ void ShellCommandPage::start(ShellCommand *command) m_statusLabel->setPalette(QPalette()); m_state = Running; command->execute(); + + wizard()->button(QWizard::BackButton)->setEnabled(false); } void ShellCommandPage::slotFinished(bool ok, int exitCode, const QVariant &) @@ -125,6 +128,7 @@ void ShellCommandPage::slotFinished(bool ok, int exitCode, const QVariant &) m_statusLabel->setPalette(palette); QApplication::restoreOverrideCursor(); + wizard()->button(QWizard::BackButton)->setEnabled(true); if (success) emit completeChanged(); |