summaryrefslogtreecommitdiff
path: root/noncore/applets/notesapplet
Side-by-side diff
Diffstat (limited to 'noncore/applets/notesapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notes.cpp20
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
@@ -267,13 +267,13 @@ void NotesControl::populateBox() {
for ( int i = 0; i < noOfFiles; i++ ) {
entryName.sprintf( "File%i", i + 1 );
list.append(cfg.readEntry( entryName ));
}
list.sort();
box->insertStringList(list,-1);
-
+ doPopulate=false;
}
void NotesControl::load() {
Config cfg("Notes");
cfg.setGroup("Docs");
@@ -341,21 +341,21 @@ void NotesApplet::mousePressEvent( QMouseEvent *) {
vc->doPopulate=false;
vc->save();
vc->close();
} 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();
}
}
void NotesApplet::paintEvent( QPaintEvent* ) {
QPainter p(this);
p.drawPixmap( 0, 1, ( const char** ) notes_xpm );