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
63c5cee8
Commit
63c5cee8
authored
Sep 06, 2010
by
dt
Browse files
Uhm, compile
parent
86799309
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/modemanager.cpp
View file @
63c5cee8
...
...
@@ -73,6 +73,7 @@ struct ModeManagerPrivate
QSignalMapper
*
m_signalMapper
;
Context
m_addedContexts
;
int
m_oldCurrent
;
bool
m_switchedToMode
;
};
ModeManager
*
ModeManagerPrivate
::
m_instance
=
0
;
...
...
@@ -152,7 +153,7 @@ IMode *ModeManager::mode(const QString &id) const
void
ModeManager
::
activateMode
(
const
QString
&
id
)
{
m_switchedToMode
=
true
;
d
->
m_switchedToMode
=
true
;
const
int
index
=
indexOf
(
id
);
if
(
index
>=
0
)
d
->
m_modeStack
->
setCurrentIndex
(
index
);
...
...
@@ -313,7 +314,7 @@ void ModeManager::setFocusToCurrentMode()
void
ModeManager
::
switchToDefaultMode
()
{
if
(
!
m_switchedToMode
)
if
(
!
d
->
m_switchedToMode
)
d
->
m_modeStack
->
setCurrentIndex
(
0
);
}
...
...
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