fixed playback/export flickering and hanging

This commit is contained in:
itsmattkc
2018-10-29 17:01:52 +11:00
parent 2e2846597e
commit a54fee767d
32 changed files with 216 additions and 163 deletions
+4 -3
View File
@@ -3,7 +3,8 @@
#include <QFile>
#include <QXmlStreamReader>
#include <QXmlStreamWriter>
#include <QDebug>
#include "debug.h"
Config config;
@@ -90,7 +91,7 @@ void Config::load(QString path) {
}
}
if (stream.hasError()) {
qDebug() << "[ERROR] Error parsing config XML." << stream.errorString();
dout << "[ERROR] Error parsing config XML." << stream.errorString();
}
f.close();
@@ -100,7 +101,7 @@ void Config::load(QString path) {
void Config::save(QString path) {
QFile f(path);
if (!f.open(QIODevice::WriteOnly)) {
qDebug() << "[ERROR] Could not save configuration";
dout << "[ERROR] Could not save configuration";
return;
}