فهرست منبع

Fixed the "open in explorer" button for scene settings (#12082)

* Fixed the "open in explorer" button for scene settings

Signed-off-by: AMZN-stankowi <[email protected]>

* Switched tr to qstring

Signed-off-by: AMZN-stankowi <[email protected]>

Signed-off-by: AMZN-stankowi <[email protected]>
AMZN-stankowi 2 سال پیش
والد
کامیت
871da44018
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      Code/Editor/Plugins/EditorAssetImporter/ImporterRootDisplay.cpp

+ 3 - 3
Code/Editor/Plugins/EditorAssetImporter/ImporterRootDisplay.cpp

@@ -64,9 +64,9 @@ AZ::SceneAPI::UI::ManifestWidget* ImporterRootDisplay::GetManifestWidget()
 void ImporterRootDisplay::SetSceneHeaderText(const QString& headerText)
 {
     QFileInfo fileInfo(headerText);
-    ui->m_filePathText->setText(tr("<b>%1</b>").arg(fileInfo.fileName()));
-    QString fullPath = tr("<b>%1%2</b>").arg(QDir::toNativeSeparators(fileInfo.path())).arg(QDir::separator());
-    ui->m_fullPathText->setText(fullPath);
+    ui->m_filePathText->setText(QString("<b>%1</b>").arg(fileInfo.fileName()));
+    QString fullPath(QString("%1%2").arg(QDir::toNativeSeparators(fileInfo.path())).arg(QDir::separator()));
+    ui->m_fullPathText->setText(QString("<b>%1</b>").arg(fullPath));
     
     ui->m_showInExplorer->setEnabled(true);
     ui->m_showInExplorer->disconnect();