From 41168f0ff49b0ed3f1d2d0341b030f23202489f1 Mon Sep 17 00:00:00 2001 From: Mark Tolley Date: Fri, 7 Sep 2012 19:33:38 +0100 Subject: [PATCH] Fix crash on unloading PIM plugin --- src/plugins/PIM/PIM_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/PIM/PIM_plugin.cpp b/src/plugins/PIM/PIM_plugin.cpp index dff1fd088..7198cfdc5 100644 --- a/src/plugins/PIM/PIM_plugin.cpp +++ b/src/plugins/PIM/PIM_plugin.cpp @@ -69,7 +69,7 @@ bool PIM_Plugin::testPlugin() QTranslator* PIM_Plugin::getTranslator(const QString &locale) { - QTranslator* translator = new QTranslator(); + QTranslator* translator = new QTranslator(this); translator->load(locale, ":/PIM/locale/"); return translator; }