diff --git a/corona.cpp b/corona.cpp index b9f315df1..4d23febf5 100644 --- a/corona.cpp +++ b/corona.cpp @@ -248,6 +248,11 @@ void Corona::requestConfigSync() } } +void Corona::requireConfigSync() +{ + d->syncConfig(); +} + void Corona::initializeLayout(const QString &configName) { clearContainments(); diff --git a/corona.h b/corona.h index 3f2e21416..934ceaff1 100644 --- a/corona.h +++ b/corona.h @@ -190,6 +190,15 @@ public Q_SLOTS: */ void requestConfigSync(); + /** + * Schedules a time sensitive flush-to-disk synchronization of the + * configuration state. Since this method does not provide any sort of + * event compression, it should only be used when an *immediate* disk + * sync is *absolutely* required. Otherwise, use @see requestConfigSync() + * which does do event compression. + */ + void requireConfigSync(); + Q_SIGNALS: /** * This signal indicates a new containment has been added to