Merge topic 'cmake-gui-symlinks'
480be00b
cmake-gui: Don't resolve symlinks with using file dialog.
This commit is contained in:
commit
a5a6d53782
|
@ -578,7 +578,8 @@ void CMakeSetupDialog::doInterrupt()
|
||||||
void CMakeSetupDialog::doSourceBrowse()
|
void CMakeSetupDialog::doSourceBrowse()
|
||||||
{
|
{
|
||||||
QString dir = QFileDialog::getExistingDirectory(this,
|
QString dir = QFileDialog::getExistingDirectory(this,
|
||||||
tr("Enter Path to Source"), this->SourceDirectory->text());
|
tr("Enter Path to Source"), this->SourceDirectory->text(),
|
||||||
|
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
|
||||||
if(!dir.isEmpty())
|
if(!dir.isEmpty())
|
||||||
{
|
{
|
||||||
this->setSourceDirectory(dir);
|
this->setSourceDirectory(dir);
|
||||||
|
@ -608,7 +609,8 @@ void CMakeSetupDialog::updateBinaryDirectory(const QString& dir)
|
||||||
void CMakeSetupDialog::doBinaryBrowse()
|
void CMakeSetupDialog::doBinaryBrowse()
|
||||||
{
|
{
|
||||||
QString dir = QFileDialog::getExistingDirectory(this,
|
QString dir = QFileDialog::getExistingDirectory(this,
|
||||||
tr("Enter Path to Build"), this->BinaryDirectory->currentText());
|
tr("Enter Path to Build"), this->BinaryDirectory->currentText(),
|
||||||
|
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
|
||||||
if(!dir.isEmpty() && dir != this->BinaryDirectory->currentText())
|
if(!dir.isEmpty() && dir != this->BinaryDirectory->currentText())
|
||||||
{
|
{
|
||||||
this->setBinaryDirectory(dir);
|
this->setBinaryDirectory(dir);
|
||||||
|
|
|
@ -67,7 +67,8 @@ void QCMakeFilePathEditor::chooseFile()
|
||||||
title = title.arg(this->Variable);
|
title = title.arg(this->Variable);
|
||||||
}
|
}
|
||||||
this->fileDialogExists(true);
|
this->fileDialogExists(true);
|
||||||
path = QFileDialog::getOpenFileName(this, title, info.absolutePath());
|
path = QFileDialog::getOpenFileName(this, title, info.absolutePath(),
|
||||||
|
QString(), NULL, QFileDialog::DontResolveSymlinks);
|
||||||
this->fileDialogExists(false);
|
this->fileDialogExists(false);
|
||||||
|
|
||||||
if(!path.isEmpty())
|
if(!path.isEmpty())
|
||||||
|
@ -91,7 +92,8 @@ void QCMakePathEditor::chooseFile()
|
||||||
title = title.arg(this->Variable);
|
title = title.arg(this->Variable);
|
||||||
}
|
}
|
||||||
this->fileDialogExists(true);
|
this->fileDialogExists(true);
|
||||||
path = QFileDialog::getExistingDirectory(this, title, this->text());
|
path = QFileDialog::getExistingDirectory(this, title, this->text(),
|
||||||
|
QFileDialog::ShowDirsOnly | QFileDialog::DontResolveSymlinks);
|
||||||
this->fileDialogExists(false);
|
this->fileDialogExists(false);
|
||||||
if(!path.isEmpty())
|
if(!path.isEmpty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue