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
f5e0dc40
Commit
f5e0dc40
authored
Mar 23, 2010
by
con
Browse files
Fixes: Notification about externally modified files on Windows.
Reviewed-by: dt Reviewed-by: Friedemann Kleint
parent
f8db7aca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/filemanager.cpp
View file @
f5e0dc40
...
...
@@ -361,12 +361,15 @@ void FileManager::checkForNewFileName()
QString
FileManager
::
fixFileName
(
const
QString
&
fileName
)
{
QString
s
=
fileName
;
QFileInfo
fi
(
s
);
if
(
!
fi
.
exists
())
s
=
QDir
::
toNativeSeparators
(
s
);
else
s
=
QDir
::
toNativeSeparators
(
fi
.
canonicalFilePath
());
#ifdef Q_OS_WIN
s
=
s
.
toLower
();
#endif
if
(
!
QFile
::
exists
(
s
))
return
QDir
::
toNativeSeparators
(
s
);
return
QFileInfo
(
QDir
::
toNativeSeparators
(
s
)).
canonicalFilePath
();
return
s
;
}
/*!
...
...
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