Generic Highlighter: Use dialogParent for error dialog.

Change-Id: I58c8326cef7b26e433cd259d457fed6eb7dd59c0
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-04-28 20:06:26 +02:00
committed by Eike Ziller
parent 9092a9e9b8
commit c75c54e930

View File

@@ -460,7 +460,7 @@ void MultiDefinitionDownloader::downloadDefinitionsFinished()
text = tr("Error downloading one or more definitions."); text = tr("Error downloading one or more definitions.");
if (writeError) if (writeError)
text.append(QLatin1Char('\n') + tr("Please check the directory's access rights.")); 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<QUrl> urls; QList<QUrl> urls;