From 52a115400ae64a7e129d34f554f9d334dbe1f526 Mon Sep 17 00:00:00 2001 From: Tim Jenssen Date: Tue, 18 Jun 2013 11:21:28 +0200 Subject: fix designer warning - MessageBoxHandler::currentBestSuitParent() is a QWizard in most cases and then it tries to add QWidgets to it, but it allows only QWizardPage - this results in a memory leak of the translatewatch objects inside the loader, but needs to be fixed in the QUiLoader see QTBUG-31818 Change-Id: I67b0cc78c3843d4bbe70f015a63b5c26bb7f9e2c Reviewed-by: Karsten Heimrich Reviewed-by: Niels Weber --- src/libs/installer/component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp index ffc4ea904..705fb6d3c 100644 --- a/src/libs/installer/component.cpp +++ b/src/libs/installer/component.cpp @@ -554,7 +554,7 @@ void Component::loadUserInterfaces(const QDir &directory, const QStringList &uis static QUiLoader loader; loader.setTranslationEnabled(true); loader.setLanguageChangeEnabled(true); - QWidget *const widget = loader.load(&file, MessageBoxHandler::currentBestSuitParent()); + QWidget *const widget = loader.load(&file, 0); if (!widget) { throw Error(tr("Could not load the requested UI file '%1'. Error: %2").arg(it.fileName(), #if QT_VERSION < 0x050000 -- cgit v1.2.3