forked from qt-creator/qt-creator
Git: Show native pathes to repositories
This commit is contained in:
@@ -55,7 +55,7 @@ QString ChangeSelectionDialog::repository() const
|
||||
|
||||
void ChangeSelectionDialog::setRepository(const QString &s)
|
||||
{
|
||||
m_ui.repositoryEdit->setText(s);
|
||||
m_ui.repositoryEdit->setText(QDir::toNativeSeparators(s));
|
||||
}
|
||||
|
||||
void ChangeSelectionDialog::selectWorkingDirectory()
|
||||
|
||||
@@ -593,7 +593,7 @@ void GitPlugin::undoRepositoryChanges()
|
||||
{
|
||||
const VCSBase::VCSBasePluginState state = currentState();
|
||||
QTC_ASSERT(state.hasTopLevel(), return)
|
||||
const QString msg = tr("Would you like to revert all pending changes to the repository\n%1?").arg(state.topLevel());
|
||||
const QString msg = tr("Would you like to revert all pending changes to the repository\n%1?").arg(QDir::toNativeSeparators(state.topLevel()));
|
||||
const QMessageBox::StandardButton answer
|
||||
= QMessageBox::question(m_core->mainWindow(),
|
||||
tr("Revert"), msg,
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include <vcsbase/vcsbaseoutputwindow.h>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QModelIndex>
|
||||
#include <QtCore/QDateTime>
|
||||
#include <QtGui/QStandardItemModel>
|
||||
@@ -167,7 +168,7 @@ QString StashDialog::msgRepositoryLabel(const QString &repository)
|
||||
{
|
||||
return repository.isEmpty() ?
|
||||
tr("<No repository>") :
|
||||
tr("Repository: %1").arg(repository);
|
||||
tr("Repository: %1").arg(QDir::toNativeSeparators(repository));
|
||||
}
|
||||
|
||||
void StashDialog::refresh(const QString &repository, bool force)
|
||||
|
||||
Reference in New Issue
Block a user