summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.cpp12
-rw-r--r--noncore/net/wellenreiter/gui/wellenreiter.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp
index 365efb0..1d4a98b 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.cpp
+++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp
@@ -38,6 +38,7 @@ using namespace Opie;
#else
#include <qapplication.h>
#endif
+#include <opie2/omanufacturerdb.h>
#include <opie2/onetwork.h>
#include <opie2/opcap.h>
@@ -52,6 +53,7 @@ using namespace Opie;
#include <qobjectlist.h>
#include <qregexp.h>
#include <qspinbox.h>
+#include <qtimer.h>
#include <qtoolbutton.h>
#include <qmainwindow.h>
@@ -88,6 +90,9 @@ Wellenreiter::Wellenreiter( QWidget* parent )
pcap = new OPacketCapturer();
gps = new GPS( this );
+
+ QTimer::singleShot( 1000, this, SLOT( initialTimer() ) );
+
}
@@ -97,6 +102,13 @@ Wellenreiter::~Wellenreiter()
}
+void Wellenreiter::initialTimer()
+{
+ qDebug( "Wellenreiter::preloading manufacturer database..." );
+ OManufacturerDB::instance();
+}
+
+
void Wellenreiter::setConfigWindow( WellenreiterConfigWindow* cw )
{
configwindow = cw;
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.h b/noncore/net/wellenreiter/gui/wellenreiter.h
index 25a5e8d..d882500 100644
--- a/noncore/net/wellenreiter/gui/wellenreiter.h
+++ b/noncore/net/wellenreiter/gui/wellenreiter.h
@@ -59,6 +59,8 @@ class Wellenreiter : public WellenreiterBase {
virtual void timerEvent( QTimerEvent* );
public slots:
+ void initialTimer();
+
void channelHopped(int);
void receivePacket(OPacket*);
void startClicked();