| 906 | } |
| 907 | |
| 908 | QList< IDocument * > KDevelop::DocumentController::modifiedDocuments(const QList< IDocument * > & list) const |
| 909 | { |
| 910 | QList< IDocument * > ret; |
| 911 | for (IDocument* doc : list) { |
| 912 | if (doc->state() == IDocument::Modified || doc->state() == IDocument::DirtyAndModified) |
| 913 | ret.append(doc); |
| 914 | } |
| 915 | return ret; |
| 916 | } |
| 917 | |
| 918 | bool DocumentController::saveAllDocumentsForWindow(KParts::MainWindow* mw, SaveSelectionMode mode, bool currentAreaOnly) |
| 919 | { |