From ada92a27d10d6ff5007cd4c8e98fc6e6d9211de8 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 29 Nov 2015 14:12:36 +0200 Subject: [PATCH] Show path with native separator. --HG-- branch : develop --- src/app/tape/tmainwindow.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/app/tape/tmainwindow.cpp b/src/app/tape/tmainwindow.cpp index 3779ed292..e93217225 100644 --- a/src/app/tape/tmainwindow.cpp +++ b/src/app/tape/tmainwindow.cpp @@ -1973,21 +1973,15 @@ void TMainWindow::SetCurrentFile(const QString &fileName) if (curFile.isEmpty()) { shownName = tr("untitled"); - if (mType == MeasurementsType::Standard) - { - shownName += ".vst"; - } - else - { - shownName += ".vit"; - } + mType == MeasurementsType::Standard ? shownName += ".vst" : shownName += ".vit"; ui->labelPathToFile->setText(tr("")); + ui->labelPathToFile->setToolTip(tr("File was not saved yet.")); ui->pushButtonShowInExplorer->setEnabled(false); } else { - ui->labelPathToFile->setText(curFile); - ui->labelPathToFile->setToolTip(curFile); + ui->labelPathToFile->setText(QDir::toNativeSeparators(curFile)); + ui->labelPathToFile->setToolTip(QDir::toNativeSeparators(curFile)); ui->pushButtonShowInExplorer->setEnabled(true); } shownName += "[*]";