From 235c8fffc3dc4e8a4f92de2e3caae863a55f27e1 Mon Sep 17 00:00:00 2001 From: kh1 Date: Tue, 12 Mar 2013 15:15:32 +0100 Subject: 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 --- src/sdk/installerbasecommons.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/sdk') 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; } -- cgit v1.2.3