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
Utilities
Kate
Commits
3a22089a
Commit
3a22089a
authored
Feb 24, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Feb 24, 2022
Browse files
docmanager: copy docs list when closing
parent
07892c4f
Pipeline
#141808
passed with stage
in 4 minutes and 29 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
kate/katedocmanager.cpp
View file @
3a22089a
...
...
@@ -201,7 +201,7 @@ KTextEditor::Document *KateDocManager::openUrl(const QUrl &url, const QString &e
return
doc
;
}
bool
KateDocManager
::
closeDocuments
(
const
QList
<
KTextEditor
::
Document
*>
&
documents
,
bool
closeUrl
)
bool
KateDocManager
::
closeDocuments
(
const
QList
<
KTextEditor
::
Document
*>
documents
,
bool
closeUrl
)
{
if
(
documents
.
empty
())
{
return
false
;
...
...
kate/katedocmanager.h
View file @
3a22089a
...
...
@@ -65,7 +65,7 @@ public:
openUrls
(
const
QList
<
QUrl
>
&
,
const
QString
&
encoding
=
QString
(),
bool
isTempFile
=
false
,
const
KateDocumentInfo
&
docInfo
=
KateDocumentInfo
());
bool
closeDocument
(
KTextEditor
::
Document
*
,
bool
closeUrl
=
true
);
bool
closeDocuments
(
const
QList
<
KTextEditor
::
Document
*>
&
documents
,
bool
closeUrl
=
true
);
bool
closeDocuments
(
const
QList
<
KTextEditor
::
Document
*>
documents
,
bool
closeUrl
=
true
);
bool
closeDocumentList
(
const
QList
<
KTextEditor
::
Document
*>
&
documents
);
bool
closeAllDocuments
(
bool
closeUrl
=
true
);
bool
closeOtherDocuments
(
KTextEditor
::
Document
*
);
...
...
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