From 4ad2edeaf52db70042ba27a97e16733cbc6a8cc0 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sun, 22 Sep 2002 01:21:48 +0000 Subject: fix race --- diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp index 64731e3..a4aa093 100644 --- a/noncore/applets/notesapplet/notes.cpp +++ b/noncore/applets/notesapplet/notes.cpp @@ -270,7 +270,7 @@ void NotesControl::populateBox() { } list.sort(); box->insertStringList(list,-1); - + doPopulate=false; } void NotesControl::load() { @@ -344,15 +344,15 @@ void NotesApplet::mousePressEvent( QMouseEvent *) { } else { // vc = new NotesControl; // QPoint curPos = mapToGlobal( rect().topLeft() ); - vc->show(); - vc->move( 5, 18); - vc->doPopulate=true; - vc->populateBox(); - vc->load(); - - - this->setFocus(); - vc->view->setFocus(); + vc->show(); + vc->move( 5, 18); + vc->doPopulate=true; + vc->populateBox(); + vc->doPopulate=false; + + vc->load(); +// this->setFocus(); + vc->view->setFocus(); } } -- cgit v0.9.0.2