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
Marco Bubke
flatpak-qt-creator
Commits
7c35a577
Commit
7c35a577
authored
Dec 01, 2010
by
con
Browse files
Don't switch away from debug mode when jumping to line via locator
Task-number: QTCREATORBUG-3192
parent
fa2ae04b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
7c35a577
...
...
@@ -1272,9 +1272,7 @@ void EditorManager::switchToPreferedMode()
if
(
preferedMode
.
isEmpty
())
preferedMode
=
Constants
::
MODE_EDIT_TYPE
;
if
(
m_d
->
m_core
->
modeManager
()
->
currentMode
()
->
type
()
!=
preferedMode
)
{
m_d
->
m_core
->
modeManager
()
->
activateModeType
(
preferedMode
);
}
m_d
->
m_core
->
modeManager
()
->
activateModeType
(
preferedMode
);
}
IEditor
*
EditorManager
::
openEditorWithContents
(
const
QString
&
editorId
,
...
...
src/plugins/coreplugin/modemanager.cpp
View file @
7c35a577
...
...
@@ -151,6 +151,8 @@ IMode *ModeManager::mode(const QString &id) const
void
ModeManager
::
activateModeType
(
const
QString
&
type
)
{
if
(
currentMode
()
&&
currentMode
()
->
type
()
==
type
)
return
;
int
index
=
-
1
;
for
(
int
i
=
0
;
i
<
d
->
m_modes
.
count
();
++
i
)
{
if
(
d
->
m_modes
.
at
(
i
)
->
type
()
==
type
)
{
...
...
src/plugins/texteditor/linenumberfilter.cpp
View file @
7c35a577
...
...
@@ -66,7 +66,7 @@ void LineNumberFilter::accept(FilterEntry selection) const
editorManager
->
addCurrentPositionToNavigationHistory
();
editor
->
gotoLine
(
selection
.
internalData
.
toInt
());
editor
->
widget
()
->
setFocus
();
Core
::
ModeManager
::
instance
()
->
activateMode
(
Core
::
Constants
::
MODE_EDIT
);
Core
::
ModeManager
::
instance
()
->
activateMode
Type
(
Core
::
Constants
::
MODE_EDIT
_TYPE
);
}
}
...
...
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