Save System Trace on exit and allow easy retrieval after restart.

The System Trace isn't preserved when quitting Rockbox Utility. Change this so
the last trace is saved in the cache folder, and add a button to the trace
window to allow easy saving it. Should help in cases where users have problems
but restart Rockbox Utility before saving the trace.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25313 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2010-03-23 22:07:17 +00:00
parent 492fafe879
commit 56199d3dfb
4 changed files with 86 additions and 41 deletions

View file

@ -31,14 +31,15 @@ class SysTrace : public QDialog
public:
SysTrace(QWidget *parent);
static void debug(QtMsgType type, const char* msg);
static QString getTrace() {return debugbuffer;}
static void save(QString filename = "");
private:
Ui::SysTraceFrm ui;
static QString debugbuffer;
private slots:
void save(void);
void saveCurrentTrace(void);
void savePreviousTrace(void);
void refresh(void);
};