From 90421277e7ed0044b499d81f06df95bf62111ce9 Mon Sep 17 00:00:00 2001 From: Eran Mizrahi Date: Mon, 18 Dec 2017 00:26:59 +0200 Subject: Ensure all mostlist writing is done through the DelayedFileWriter --- src/profile.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/profile.h') diff --git a/src/profile.h b/src/profile.h index 996e561f..edbbffe7 100644 --- a/src/profile.h +++ b/src/profile.h @@ -89,7 +89,11 @@ public: **/ static Profile *createPtrFrom(const QString &name, const Profile &reference, MOBase::IPluginGame const *gamePlugin); - MOBase::DelayedFileWriter &modlistWriter() { return m_ModListWriter; } + void writeModlist(); + + void writeModlistNow(bool onlyIfPending=false); + + void cancelModlistWrite(); /** * @brief test if this profile uses archive invalidation @@ -297,7 +301,8 @@ signals: public slots: - void writeModlistNow(); + // should only be called by DelayedFileWriter, use writeModlist() and writeModlistNow() instead + void doWriteModlist(); private: -- cgit v1.3.1