summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-09-03 09:33:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-09-03 09:33:31 +0200
commit66054ee6ccd0e86534c42167d9e93704f7995db8 (patch)
treea3dbdd5fddaea8ebb1ccd8e0562ef5a297bb176b /facetracknoir/ui.h
parent9a8fde2d6dbd4aad8fa15b50fb4f8483202dbcb4 (diff)
ui: force saving if saving timer is pending
Force saving when tracking is stopping at least. Due to "struct work" being destroyed, unsaved settings revert to last saved. So before "struct work" destruction need to save if save is pending. Issue: #179
Diffstat (limited to 'facetracknoir/ui.h')
-rw-r--r--facetracknoir/ui.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/facetracknoir/ui.h b/facetracknoir/ui.h
index cfaf47cb..91e4ebbf 100644
--- a/facetracknoir/ui.h
+++ b/facetracknoir/ui.h
@@ -75,6 +75,7 @@ class MainWindow : public QMainWindow, private State
void set_title(const QString& game_title = QStringLiteral(""));
static bool get_new_config_name_from_dialog(QString &ret);
void set_profile(const QString& profile);
+ void maybe_save();
private slots:
void _save();
void save();