summaryrefslogtreecommitdiff
path: root/libopie2/opienet
Side-by-side diff
Diffstat (limited to 'libopie2/opienet') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/omanufacturerdb.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie2/opienet/omanufacturerdb.cpp b/libopie2/opienet/omanufacturerdb.cpp
index 006ae72..595633d 100644
--- a/libopie2/opienet/omanufacturerdb.cpp
+++ b/libopie2/opienet/omanufacturerdb.cpp
@@ -29,20 +29,23 @@
*/
#include "omanufacturerdb.h"
/* OPIE CORE */
#include <opie2/odebug.h>
/* QT */
+#include <qapplication.h>
#include <qstring.h>
#include <qfile.h>
#include <qtextstream.h>
+#define OPIE_IMPROVE_GUI_LATENCY 1
+
OManufacturerDB* OManufacturerDB::_instance = 0;
OManufacturerDB* OManufacturerDB::instance()
{
if ( !OManufacturerDB::_instance )
{
odebug << "OManufacturerDB::instance(): creating OManufacturerDB..." << oendl;
_instance = new OManufacturerDB();
@@ -83,16 +86,19 @@ OManufacturerDB::OManufacturerDB()
{
s >> addr;
s >> manu;
s >> extManu;
manufacturers.insert( addr, manu );
manufacturersExt.insert( addr, extManu );
odebug << "OmanufacturerDB: parse '" << addr << "' as '" << manu << "' (" << extManu << ")" << oendl;
+ #ifdef OPIE_IMPROVE_GUI_LATENCY
+ if ( qApp ) qApp->processEvents();
+ #endif
}
}
}
OManufacturerDB::~OManufacturerDB()
{
}