Use platform specific path separators in window caption

For displaying the path to the currently opened database file use
platform specific path separators.

See issue #735.
This commit is contained in:
Martin Kleusberg
2017-05-05 14:19:50 +02:00
parent 8c5650a63f
commit e205f77e6a

View File

@@ -1357,7 +1357,7 @@ void MainWindow::updateRecentFileActions()
void MainWindow::setCurrentFile(const QString &fileName)
{
setWindowFilePath(fileName);
setWindowTitle( QApplication::applicationName() +" - "+fileName);
setWindowTitle(QApplication::applicationName() + " - " + QDir::toNativeSeparators(fileName));
activateFields(true);
}