Show path with native separator.
--HG-- branch : develop
This commit is contained in:
parent
b0211b09c9
commit
ada92a27d1
|
@ -1973,21 +1973,15 @@ void TMainWindow::SetCurrentFile(const QString &fileName)
|
||||||
if (curFile.isEmpty())
|
if (curFile.isEmpty())
|
||||||
{
|
{
|
||||||
shownName = tr("untitled");
|
shownName = tr("untitled");
|
||||||
if (mType == MeasurementsType::Standard)
|
mType == MeasurementsType::Standard ? shownName += ".vst" : shownName += ".vit";
|
||||||
{
|
|
||||||
shownName += ".vst";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
shownName += ".vit";
|
|
||||||
}
|
|
||||||
ui->labelPathToFile->setText(tr("<Empty>"));
|
ui->labelPathToFile->setText(tr("<Empty>"));
|
||||||
|
ui->labelPathToFile->setToolTip(tr("File was not saved yet."));
|
||||||
ui->pushButtonShowInExplorer->setEnabled(false);
|
ui->pushButtonShowInExplorer->setEnabled(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ui->labelPathToFile->setText(curFile);
|
ui->labelPathToFile->setText(QDir::toNativeSeparators(curFile));
|
||||||
ui->labelPathToFile->setToolTip(curFile);
|
ui->labelPathToFile->setToolTip(QDir::toNativeSeparators(curFile));
|
||||||
ui->pushButtonShowInExplorer->setEnabled(true);
|
ui->pushButtonShowInExplorer->setEnabled(true);
|
||||||
}
|
}
|
||||||
shownName += "[*]";
|
shownName += "[*]";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user