forked from qt-creator/qt-creator
Fix translation issue
The model doesn't have a translation context and it makes more sense to use the one from the widget anyhow. Change-Id: I9847e4651bc7482c1e460fddd9c6890178f806bd Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -203,7 +203,7 @@ bool FolderNavigationModel::setData(const QModelIndex &index, const QVariant &va
|
|||||||
if (!failedNodes.isEmpty()) {
|
if (!failedNodes.isEmpty()) {
|
||||||
const QString projects = projectNames(failedNodes).join(", ");
|
const QString projects = projectNames(failedNodes).join(", ");
|
||||||
const QString errorMessage
|
const QString errorMessage
|
||||||
= tr("The file \"%1\" was renamed to \"%2\", "
|
= FolderNavigationWidget::tr("The file \"%1\" was renamed to \"%2\", "
|
||||||
"but the following projects could not be automatically changed: %3")
|
"but the following projects could not be automatically changed: %3")
|
||||||
.arg(beforeFilePath, afterFilePath, projects);
|
.arg(beforeFilePath, afterFilePath, projects);
|
||||||
QTimer::singleShot(0, Core::ICore::instance(), [errorMessage] {
|
QTimer::singleShot(0, Core::ICore::instance(), [errorMessage] {
|
||||||
|
|||||||
Reference in New Issue
Block a user