Commit 3a22089a authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

docmanager: copy docs list when closing

parent 07892c4f
Pipeline #141808 passed with stage
in 4 minutes and 29 seconds
......@@ -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;
......
......@@ -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 *);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment