- Bugfix:

- Avoid unnecesary font reaload
- Avoid  innecesary counter process
- Log now make one file per execution
This commit is contained in:
Santi Noreña 2013-02-26 10:28:29 +01:00
parent 5b47c73cce
commit e6c0768e51
5 changed files with 285 additions and 271 deletions

View file

@ -25,9 +25,9 @@
#define PDPORTW_AUDIO 9197
#define PDPORTR_AUDIO 9198
#define SOCKET "/tmp/pmspipe" // Pipe wich PD sends the files for preview in the GUI
#define SOCKET "/tmp/pmspipe" // Pipe wich PD Video sends the files for preview in the GUI
#define CONF_FILE "lms.conf" // File when save/restore the configuration on exit/open
#define CONF_FILE "lms.conf" // File when saving/restoring the configuration on exit/open
///////////////////////////////////////////////////////////////////

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by Qt Creator 2.5.0, 2013-02-24T23:09:11. -->
<!-- Written by Qt Creator 2.5.0, 2013-02-25T22:53:40. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>

View file

@ -43,13 +43,21 @@ void MessageHandler(QtMsgType type, const char *msg)
}
if (!initMessageHandler)
{
QDir dir;
if (!dir.exists("log"))
{
if (!dir.mkdir("log"))
{
qDebug()<<"MessageHandler: Can not create log folder";
return;
}
}
QString filename;
QDate date = QDate::currentDate();
QTime time = QTime::currentTime();
filename.append("./logs/log_");
filename.append(date.toString("dd_MM_yy-"));
filename.append(time.toString("hh-mm-ss"));
filename.append(".txt");
filename.append("./log/log_");
filename.append(date.toString("ddMMyy-"));
filename.append(time.toString("hhmmss.txt"));
outFile.setFileName(filename);
if (!outFile.open(QIODevice::WriteOnly | QIODevice::Append))
{