From c75c54e930d6a1d70ed8730072f66364e20a91d8 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Thu, 28 Apr 2016 20:06:26 +0200 Subject: [PATCH] Generic Highlighter: Use dialogParent for error dialog. Change-Id: I58c8326cef7b26e433cd259d457fed6eb7dd59c0 Reviewed-by: David Schulz --- src/plugins/texteditor/generichighlighter/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/generichighlighter/manager.cpp b/src/plugins/texteditor/generichighlighter/manager.cpp index 6f32e833b9d..1c08bfa01d4 100644 --- a/src/plugins/texteditor/generichighlighter/manager.cpp +++ b/src/plugins/texteditor/generichighlighter/manager.cpp @@ -460,7 +460,7 @@ void MultiDefinitionDownloader::downloadDefinitionsFinished() text = tr("Error downloading one or more definitions."); if (writeError) text.append(QLatin1Char('\n') + tr("Please check the directory's access rights.")); - QMessageBox::critical(0, tr("Download Error"), text); + QMessageBox::critical(Core::ICore::dialogParent(), tr("Download Error"), text); } QList urls;