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
6863b02e
Commit
6863b02e
authored
Sep 06, 2010
by
dt
Browse files
ModeManager: Don't switch to weclome mode for session restore
parent
33c3e1cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/modemanager.cpp
View file @
6863b02e
...
...
@@ -83,7 +83,8 @@ ModeManagerPrivate::ModeManagerPrivate(Internal::MainWindow *mainWindow,
m_mainWindow
(
mainWindow
),
m_modeStack
(
modeStack
),
m_signalMapper
(
new
QSignalMapper
(
q
)),
m_oldCurrent
(
-
1
)
m_oldCurrent
(
-
1
),
m_switchedToMode
(
false
)
{
}
...
...
@@ -151,6 +152,7 @@ IMode *ModeManager::mode(const QString &id) const
void
ModeManager
::
activateMode
(
const
QString
&
id
)
{
m_switchedToMode
=
true
;
const
int
index
=
indexOf
(
id
);
if
(
index
>=
0
)
d
->
m_modeStack
->
setCurrentIndex
(
index
);
...
...
@@ -311,7 +313,8 @@ void ModeManager::setFocusToCurrentMode()
void
ModeManager
::
switchToDefaultMode
()
{
d
->
m_modeStack
->
setCurrentIndex
(
0
);
if
(
!
m_switchedToMode
)
d
->
m_modeStack
->
setCurrentIndex
(
0
);
}
ModeManager
*
ModeManager
::
instance
()
...
...
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