Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
724f67b3
Commit
724f67b3
authored
Nov 01, 2010
by
Friedemann Kleint
Browse files
Open File: Make it open in project directory if one is set.
Reviewed-by: dt Task-number: QTCREATORBUG-2947
parent
6510a749
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/filemanager.cpp
View file @
724f67b3
...
...
@@ -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"
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment