blob: 16ac7c7dc5716ff8e814e816b88d10645f7a4794 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
diff -Nur ori/tdebase/kate/app/katedocmanager.cpp new/tdebase/kate/app/katedocmanager.cpp
--- ori/tdebase/kate/app/katedocmanager.cpp 2013-07-27 02:36:57.000000000 +0900
+++ new/tdebase/kate/app/katedocmanager.cpp 2013-12-05 15:56:20.311928016 +0900
@@ -381,7 +381,6 @@
return modified;
}
-
bool KateDocManager::queryCloseDocuments(KateMainWindow *w)
{
uint docCount = m_docList.count();
@@ -436,12 +435,22 @@
return true;
}
-
void KateDocManager::saveAll()
{
for (TQPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it)
- if ( it.current()->isModified() && it.current()->views().count() )
- ((Kate::View*)it.current()->views().first())->save();
+ {
+ if (it.current()->views().count())
+ {
+ if (it.current()->url().isEmpty())
+ {
+ ((Kate::View*)it.current()->views().first())->saveAs();
+ }
+ else if (it.current()->isModified())
+ {
+ ((Kate::View*)it.current()->views().first())->save();
+ }
+ }
+ }
}
void KateDocManager::saveDocumentList (TDEConfig* config)
|