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
abe58a77
Commit
abe58a77
authored
Jun 05, 2009
by
mae
Browse files
clear navigation history when switching sessions
parent
8fb4a615
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/editormanager/editormanager.cpp
View file @
abe58a77
...
...
@@ -165,6 +165,10 @@ struct EditorManagerPrivate {
QList
<
IEditor
*>
m_editorHistory
;
QList
<
EditLocation
*>
m_navigationHistory
;
void
clearNavigationHistory
()
{
qDeleteAll
(
m_navigationHistory
);
m_navigationHistory
.
clear
();
}
int
currentNavigationHistoryPosition
;
Internal
::
OpenEditorsWindow
*
m_windowPopup
;
Core
::
BaseView
*
m_openEditorsView
;
...
...
@@ -205,8 +209,7 @@ EditorManagerPrivate::EditorManagerPrivate(ICore *core, QWidget *parent) :
EditorManagerPrivate
::~
EditorManagerPrivate
()
{
qDeleteAll
(
m_navigationHistory
);
m_navigationHistory
.
clear
();
clearNavigationHistory
();
}
EditorManager
*
EditorManager
::
m_instance
=
0
;
...
...
@@ -654,7 +657,11 @@ QList<IFile *> EditorManager::filesForEditors(QList<IEditor *> editors) const
bool
EditorManager
::
closeAllEditors
(
bool
askAboutModifiedEditors
)
{
m_d
->
m_editorModel
->
removeAllRestoredEditors
();
return
closeEditors
(
openedEditors
(),
askAboutModifiedEditors
);
if
(
closeEditors
(
openedEditors
(),
askAboutModifiedEditors
))
{
m_d
->
clearNavigationHistory
();
return
true
;
}
return
false
;
}
void
EditorManager
::
closeOtherEditors
()
...
...
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