forked from qt-creator/qt-creator
Core: Use native dir separators in user visible path names
Change-Id: I50123fea940b07ffa249a61ade16d65644242ef9 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
615891736e
commit
a52306c716
@@ -26,6 +26,7 @@
|
||||
#include "addtovcsdialog.h"
|
||||
#include "ui_addtovcsdialog.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QListWidgetItem>
|
||||
|
||||
namespace Core {
|
||||
@@ -45,7 +46,7 @@ AddToVcsDialog::AddToVcsDialog(QWidget *parent, const QString &title,
|
||||
setWindowTitle(title);
|
||||
|
||||
foreach (const QString &file, files) {
|
||||
QListWidgetItem *item = new QListWidgetItem(file);
|
||||
QListWidgetItem *item = new QListWidgetItem(QDir::toNativeSeparators(file));
|
||||
ui->filesListWidget->addItem(item);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user