Fix problems that occurred when multiple threads were trying to read/convert files at the same time (ie: indexing and previewing threads in the GUI calling internfile()). Either get rid of or lock-protect all shared data, eliminate misc initialization possible conflicts by using static initializers. Hopefuly closes issue #51

This commit is contained in:
Jean-Francois Dockes
2011-04-28 10:58:33 +02:00
parent 01f24fa5fd
commit 55f124725f
33 changed files with 318 additions and 231 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ using std::list;
namespace confgui {
const static int spacing = 2;
const static int margin = 2;
static const int spacing = 2;
static const int margin = 2;
void ConfParamW::setValue(const QString& value)
{
+3 -2
View File
@@ -44,8 +44,8 @@ using std::list;
#include "rclconfig.h"
namespace confgui {
const static int spacing = 3;
const static int margin = 3;
static const int spacing = 3;
static const int margin = 3;
ConfIndexW::ConfIndexW(QWidget *parent, RclConfig *config)
: QDialog(parent), m_rclconf(config)
@@ -84,6 +84,7 @@ void ConfIndexW::acceptChanges()
delete m_conf;
m_conf = 0;
m_rclconf->updateMainConfig();
snapshotConfig();
if (startIndexingAfterConfig) {
startIndexingAfterConfig = 0;