forked from qt-creator/qt-creator
Open File: Make it open in project directory if one is set.
Reviewed-by: dt Task-number: QTCREATORBUG-2947
This commit is contained in:
@@ -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"),
|
||||
|
Reference in New Issue
Block a user