summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-27 20:19:09 (UTC)
committer llornkcor <llornkcor>2002-09-27 20:19:09 (UTC)
commitd7bcdda1857ff31830705921d8248200d881cf93 (patch) (unidiff)
treefe75820a9ffa1e2340e4dcb02ffafed36a585a46
parentf9712865139ba9831ef188d4e00d1b75dda4f261 (diff)
downloadopie-d7bcdda1857ff31830705921d8248200d881cf93.zip
opie-d7bcdda1857ff31830705921d8248200d881cf93.tar.gz
opie-d7bcdda1857ff31830705921d8248200d881cf93.tar.bz2
save makes new
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notes.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp
index 76cb6c1..f2dbabf 100644
--- a/noncore/applets/notesapplet/notes.cpp
+++ b/noncore/applets/notesapplet/notes.cpp
@@ -135,28 +135,26 @@ NotesControl::NotesControl( QWidget *parent, const char *name )
135 135
136 connect(newButton, SIGNAL(clicked()), this, SLOT(slotNewButton())); 136 connect(newButton, SIGNAL(clicked()), this, SLOT(slotNewButton()));
137 connect(saveButton, SIGNAL(clicked()), this, SLOT(slotSaveButton())); 137 connect(saveButton, SIGNAL(clicked()), this, SLOT(slotSaveButton()));
138 connect(deleteButton, SIGNAL(clicked()), this, SLOT(slotDeleteButtonClicked())); 138 connect(deleteButton, SIGNAL(clicked()), this, SLOT(slotDeleteButtonClicked()));
139 139
140 populateBox(); 140 populateBox();
141 load(); 141 load();
142 setCaption("Notes"); 142 setCaption("Notes");
143 // parent->setFocus(); 143 // parent->setFocus();
144} 144}
145 145
146void NotesControl::slotSaveButton() { 146void NotesControl::slotSaveButton() {
147 if(edited) { 147 slotNewButton();
148 save(); 148 populateBox();
149 populateBox();
150 }
151} 149}
152 150
153void NotesControl::slotDeleteButtonClicked() { 151void NotesControl::slotDeleteButtonClicked() {
154 switch ( QMessageBox::warning(this,tr("Delete?") 152 switch ( QMessageBox::warning(this,tr("Delete?")
155 ,tr("Do you really want to<BR><B> delete</B> this note ?") 153 ,tr("Do you really want to<BR><B> delete</B> this note ?")
156 ,tr("Yes"),tr("No"),0,1,1) ) { 154 ,tr("Yes"),tr("No"),0,1,1) ) {
157 case 0: 155 case 0:
158 slotDeleteButton(); 156 slotDeleteButton();
159 break; 157 break;
160 }; 158 };
161} 159}
162 160