Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6737ca53
Commit
6737ca53
authored
Oct 28, 2009
by
con
Browse files
Add some sanity checking.
parent
3e7d9b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
6737ca53
...
...
@@ -1347,6 +1347,8 @@ EditorManager::ReadOnlyAction
MakeWritableResult
EditorManager
::
makeEditorWritable
(
IEditor
*
editor
)
{
if
(
!
editor
||
!
editor
->
file
())
return
Failed
;
QString
directory
=
QFileInfo
(
editor
->
file
()
->
fileName
()).
absolutePath
();
IVersionControl
*
versionControl
=
m_d
->
m_core
->
vcsManager
()
->
findVersionControlForDirectory
(
directory
);
IFile
*
file
=
editor
->
file
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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