Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
d9686f5b
Commit
d9686f5b
authored
Dec 02, 2008
by
mae
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not call QProcess::startDetached() with an empty string if no external
editor is defined.
parent
05c35356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/plugins/coreplugin/editormanager/editormanager.cpp
src/plugins/coreplugin/editormanager/editormanager.cpp
+4
-2
No files found.
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
d9686f5b
...
...
@@ -1152,7 +1152,7 @@ void EditorManager::updateActions()
m_d
->
m_duplicateAction
->
setEnabled
(
curEditor
!=
0
&&
curEditor
->
duplicateSupported
());
m_d
->
m_openInExternalEditorAction
->
setEnabled
(
curEditor
!=
0
);
m_d
->
m_openInExternalEditorAction
->
setEnabled
(
curEditor
!=
0
&&
!
m_d
->
m_externalEditor
.
isEmpty
()
);
}
QList
<
IEditor
*>
EditorManager
::
openedEditors
()
const
...
...
@@ -1488,6 +1488,9 @@ QString EditorManager::externalEditorHelpText() const
void
EditorManager
::
openInExternalEditor
()
{
if
(
m_d
->
m_externalEditor
.
isEmpty
())
return
;
IEditor
*
editor
=
currentEditor
();
if
(
!
editor
)
return
;
...
...
@@ -1499,7 +1502,6 @@ void EditorManager::openInExternalEditor()
return
;
}
QRect
rect
=
editor
->
widget
()
->
rect
();
QFont
font
=
editor
->
widget
()
->
font
();
QFontMetrics
fm
(
font
);
...
...
Write
Preview
Markdown
is supported
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