summaryrefslogtreecommitdiff
path: root/packages/nunome/files
diff options
context:
space:
mode:
authorRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-05-29 00:04:48 +0000
committerRolf Leggewie <oe-devel@rolf.leggewie.biz>2007-05-29 00:04:48 +0000
commitd3e661042f818b9cd813ba54b9e6a978fa66c896 (patch)
treef755bc21eb114a48189d5b78d69ec399fcf08899 /packages/nunome/files
parent0cbfc641fae9473f7dcc4a92d7ab398b2f01ffea (diff)
nunome: fix non-working nunome on spitz/Angstrom
* Thanks to polyonymous for providing the patch * fixes access to the timer object before allocating it
Diffstat (limited to 'packages/nunome/files')
-rw-r--r--packages/nunome/files/timer.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/nunome/files/timer.patch b/packages/nunome/files/timer.patch
new file mode 100644
index 0000000000..ccd65647be
--- /dev/null
+++ b/packages/nunome/files/timer.patch
@@ -0,0 +1,21 @@
+diff --git a/ui/nnmCanvas.cpp b/ui/nnmCanvas.cpp
+index a548ddf..3b8e7d4 100755
+--- a/ui/nnmCanvas.cpp
++++ b/ui/nnmCanvas.cpp
+@@ -35,7 +35,7 @@
+
+ nnmCanvas::nnmCanvas( QWidget *parent, int timeoutParam, int initID,
+ const char *name, WFlags f )
+- : QWidget( parent, name, f )
++ : QWidget( parent, name, f ), timer(0)
+ {
+ setFixedSize( NnmCANVAS_DISPLAY_SIZE, NnmCANVAS_DISPLAY_SIZE );
+ init();
+@@ -149,7 +149,7 @@ void nnmCanvas::resizeEvent( QResizeEvent *event )
+
+ void nnmCanvas::init( void )
+ {
+- if ( timeoutMsec > 0 && timer->isActive() ) {
++ if ( timeoutMsec > 0 && timer && timer->isActive() ) {
+ timer->stop();
+ } \ No newline at end of file