summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-02-06 15:46:56 +0100
committerEike Ziller <eike.ziller@qt.io>2023-02-08 08:06:02 +0000
commit5728f09facdaa4c2e358221f3b9ca66f8651c049 (patch)
tree94299dc0509e9b0552da5c0b565054b804dade04
parent3358f94cb76a0a566a79085927dfc121eb42f233 (diff)
downloadqt-creator-5728f09facdaa4c2e358221f3b9ca66f8651c049.tar.gz
Editors: Fix message box when opening broken code style file
The file name is not supposed to be the button label. Fixes: QTCREATORBUG-28746 Change-Id: I45ee2a860da8f7ffefc6d72c0d85b7f6a261489c Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
-rw-r--r--src/plugins/texteditor/codestyleselectorwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/texteditor/codestyleselectorwidget.cpp b/src/plugins/texteditor/codestyleselectorwidget.cpp
index 4021fc1b05..ec028f0e88 100644
--- a/src/plugins/texteditor/codestyleselectorwidget.cpp
+++ b/src/plugins/texteditor/codestyleselectorwidget.cpp
@@ -209,8 +209,9 @@ void CodeStyleSelectorWidget::slotImportClicked()
if (importedStyle)
m_codeStyle->setCurrentDelegate(importedStyle);
else
- QMessageBox::warning(this, tr("Import Code Style"),
- tr("Cannot import code style from %1"), fileName.toUserOutput());
+ QMessageBox::warning(this,
+ tr("Import Code Style"),
+ tr("Cannot import code style from %1").arg(fileName.toUserOutput()));
}
}