diff options
author | kh1 <karsten.heimrich@digia.com> | 2013-03-12 15:15:32 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2013-03-12 16:43:34 +0100 |
commit | 235c8fffc3dc4e8a4f92de2e3caae863a55f27e1 (patch) | |
tree | 0f1b82a4efff6a0f2aedbd48b4e7340143590b7d /src | |
parent | 368b00f3fc3e4b9635e68bdca8d5f17d7c881d72 (diff) |
Fix crash on OSX.
Since the message box is a Sheet, we do not need to update the page
by calling repaint slot. It gets repainted once the Sheet vanishes.
Change-Id: I69392847ef999e3d4b4a6fc1b7716085f50e7e8d
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/sdk/installerbasecommons.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sdk/installerbasecommons.cpp b/src/sdk/installerbasecommons.cpp index 5a08d20d3..becd7633a 100644 --- a/src/sdk/installerbasecommons.cpp +++ b/src/sdk/installerbasecommons.cpp @@ -441,8 +441,9 @@ bool TargetDirectoryPageImpl::askQuestion(const QString &identifier, const QStri QMessageBox::StandardButton bt = MessageBoxHandler::warning(MessageBoxHandler::currentBestSuitParent(), identifier, TargetDirectoryPageImpl::tr("Warning"), message, QMessageBox::Yes | QMessageBox::No); +#ifndef Q_OS_MAC QTimer::singleShot(100, wizard()->page(nextId()), SLOT(repaint())); - +#endif return bt == QMessageBox::Yes; } @@ -450,8 +451,9 @@ bool TargetDirectoryPageImpl::failWithError(const QString &identifier, const QSt { MessageBoxHandler::critical(MessageBoxHandler::currentBestSuitParent(), identifier, TargetDirectoryPageImpl::tr("Error"), message); +#ifndef Q_OS_MAC QTimer::singleShot(100, wizard()->page(nextId()), SLOT(repaint())); - +#endif return false; } |