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
1787a854
Commit
1787a854
authored
Jul 13, 2010
by
mae
Browse files
Use current file path for getOpenFileNames
parent
5c8ce80e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/filemanager.cpp
View file @
1787a854
...
...
@@ -745,7 +745,11 @@ QStringList FileManager::getOpenFileNames(const QString &filters,
const
QString
pathIn
,
QString
*
selectedFilter
)
{
const
QString
path
=
pathIn
.
isEmpty
()
?
fileDialogInitialDirectory
()
:
pathIn
;
QString
path
=
pathIn
;
if
(
path
.
isEmpty
())
{
if
(
!
d
->
m_currentFile
.
isEmpty
())
path
=
QFileInfo
(
d
->
m_currentFile
).
absoluteFilePath
();
}
const
QStringList
files
=
QFileDialog
::
getOpenFileNames
(
d
->
m_mainWindow
,
tr
(
"Open File"
),
path
,
filters
,
...
...
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