Skip to content

Commit

Permalink
Fixed the "open in explorer" button for scene settings (o3de#12082)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
AMZN-stankowi authored Sep 27, 2022
1 parent e5e166a commit 871da44
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 871da44

Please sign in to comment.