auto-saves every minute and recovers upon crash

auto-save time is not configurable yet. saves "recover.mmp" to
WORKING_DIR every 60 seconds. Deletes recover.mmp on successful
close of LMMS. If recover.mmp is found upon start, it loads that
project.
(cherry picked from comit f73ccadc17)
This commit is contained in:
Andrew Kelley
2009-11-10 21:41:45 -07:00
committed by Tobias Doerffel
parent 6280fd9faf
commit d75677b9d3
3 changed files with 29 additions and 2 deletions

View File

@@ -27,6 +27,7 @@
#define _MAIN_WINDOW_H
#include <QtCore/QBasicTimer>
#include <QtCore/QTimer>
#include <QtCore/QList>
#include <QtGui/QMainWindow>
#include <QtGui/QWhatsThis>
@@ -160,6 +161,7 @@ private:
QList<PluginView *> m_tools;
QBasicTimer m_updateTimer;
QTimer m_autoSaveTimer;
friend class engine;
@@ -173,6 +175,8 @@ private slots:
void updateRecentlyOpenedProjectsMenu( void );
void autoSave();
signals:
void periodicUpdate( void );