aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/generichighlighter
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-09-20 01:36:38 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-09-20 07:22:55 +0000
commit1156646ce21f7f8ca220f08c03c4d5818353f7c0 (patch)
tree4991eccb0c267f9607ce4b4e2710cf51490abb80 /src/plugins/texteditor/generichighlighter
parent8a472bb0ad95944bdcb41855a57dc507dfedb444 (diff)
TextEditor: Pass dialogParent where needed
Change-Id: I57c41d0e8e37472a1a5070ea082b4c2e1ff6d287 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/texteditor/generichighlighter')
-rw-r--r--src/plugins/texteditor/generichighlighter/highlightersettingspage.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/texteditor/generichighlighter/highlightersettingspage.cpp b/src/plugins/texteditor/generichighlighter/highlightersettingspage.cpp
index 05fd707e1f..67df7ac53d 100644
--- a/src/plugins/texteditor/generichighlighter/highlightersettingspage.cpp
+++ b/src/plugins/texteditor/generichighlighter/highlightersettingspage.cpp
@@ -172,11 +172,12 @@ void HighlighterSettingsPage::settingsToUI()
void HighlighterSettingsPage::resetDefinitionsLocation()
{
const QString &location = findFallbackDefinitionsLocation();
- if (location.isEmpty())
- QMessageBox::information(0, tr("Autodetect Definitions"),
+ if (location.isEmpty()) {
+ QMessageBox::information(Core::ICore::dialogParent(), tr("Autodetect Definitions"),
tr("No pre-installed definitions could be found."));
- else
+ } else {
m_d->m_page->fallbackDefinitionFilesPath->setPath(location);
+ }
}
void HighlighterSettingsPage::requestAvailableDefinitionsMetaData()