author | llornkcor <llornkcor> | 2002-09-22 01:21:48 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-22 01:21:48 (UTC) |
commit | 4ad2edeaf52db70042ba27a97e16733cbc6a8cc0 (patch) (unidiff) | |
tree | ab2adb51887a5a1ceece5b2ba4b1131c13cc36d7 | |
parent | ad9e290551c610e4ccaafb20b72699b39b55d079 (diff) | |
download | opie-4ad2edeaf52db70042ba27a97e16733cbc6a8cc0.zip opie-4ad2edeaf52db70042ba27a97e16733cbc6a8cc0.tar.gz opie-4ad2edeaf52db70042ba27a97e16733cbc6a8cc0.tar.bz2 |
fix race
-rw-r--r-- | noncore/applets/notesapplet/notes.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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() { | |||
270 | } | 270 | } |
271 | list.sort(); | 271 | list.sort(); |
272 | box->insertStringList(list,-1); | 272 | box->insertStringList(list,-1); |
273 | 273 | doPopulate=false; | |
274 | } | 274 | } |
275 | 275 | ||
276 | void NotesControl::load() { | 276 | void NotesControl::load() { |
@@ -344,15 +344,15 @@ void NotesApplet::mousePressEvent( QMouseEvent *) { | |||
344 | } else { | 344 | } else { |
345 | // vc = new NotesControl; | 345 | // vc = new NotesControl; |
346 | // QPoint curPos = mapToGlobal( rect().topLeft() ); | 346 | // QPoint curPos = mapToGlobal( rect().topLeft() ); |
347 | vc->show(); | 347 | vc->show(); |
348 | vc->move( 5, 18); | 348 | vc->move( 5, 18); |
349 | vc->doPopulate=true; | 349 | vc->doPopulate=true; |
350 | vc->populateBox(); | 350 | vc->populateBox(); |
351 | vc->load(); | 351 | vc->doPopulate=false; |
352 | 352 | ||
353 | 353 | vc->load(); | |
354 | this->setFocus(); | 354 | // this->setFocus(); |
355 | vc->view->setFocus(); | 355 | vc->view->setFocus(); |
356 | } | 356 | } |
357 | } | 357 | } |
358 | 358 | ||