NOISSUE force saving of any outstanding instance component state on exit

This commit is contained in:
Petr Mrázek
2017-12-03 18:36:28 +01:00
parent e0bea1e46a
commit 95e6f37d39
10 changed files with 42 additions and 15 deletions

View File

@ -104,6 +104,10 @@ public:
bool setComponentVersion(const QString &uid, const QString &version, bool important = false);
QString patchFilePathForUid(const QString &uid) const;
/// if there is a save scheduled, do it now.
void saveNow();
public:
/// get the profile component by id
ComponentPtr getComponent(const QString &id);
@ -127,7 +131,7 @@ private:
QString patchesPattern() const;
private slots:
void save();
void save_internal();
void updateSucceeded();
void updateFailed(const QString & error);
void componentDataChanged();