Open File: Make it open in project directory if one is set.

Reviewed-by: dt
Task-number: QTCREATORBUG-2947
This commit is contained in:
Friedemann Kleint
2010-11-01 14:29:25 +01:00
parent 6510a749b7
commit 724f67b311

View File

@@ -779,6 +779,8 @@ QStringList FileManager::getOpenFileNames(const QString &filters,
if (path.isEmpty()) {
if (!d->m_currentFile.isEmpty())
path = QFileInfo(d->m_currentFile).absoluteFilePath();
if (path.isEmpty() && useProjectsDirectory())
path = projectsDirectory();
}
const QStringList files = QFileDialog::getOpenFileNames(d->m_mainWindow,
tr("Open File"),