diff options
-rw-r--r-- | src/plugins/tasklist/taskfilefactory.cpp | 2 | ||||
-rw-r--r-- | src/plugins/tasklist/taskfilefactory.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/tasklist/taskfilefactory.cpp b/src/plugins/tasklist/taskfilefactory.cpp index ad8fdb82ea..a902449257 100644 --- a/src/plugins/tasklist/taskfilefactory.cpp +++ b/src/plugins/tasklist/taskfilefactory.cpp @@ -80,7 +80,7 @@ Core::IDocument *TaskFileFactory::open(const QString &base, const QString &fileN void TaskFileFactory::closeAllFiles() { - foreach (Core::IDocument *document, m_openFiles) + foreach (TaskFile *document, m_openFiles) document->deleteLater(); m_openFiles.clear(); } diff --git a/src/plugins/tasklist/taskfilefactory.h b/src/plugins/tasklist/taskfilefactory.h index 2e0248b4e6..96fcb7d30c 100644 --- a/src/plugins/tasklist/taskfilefactory.h +++ b/src/plugins/tasklist/taskfilefactory.h @@ -38,6 +38,8 @@ namespace ProjectExplorer { class Project; } namespace TaskList { namespace Internal { +class TaskFile; + class TaskFileFactory : public Core::IDocumentFactory { Q_OBJECT @@ -51,7 +53,7 @@ public: void closeAllFiles(); private: - QList<Core::IDocument *> m_openFiles; + QList<TaskFile *> m_openFiles; }; } // namespace Internal |