author | llornkcor <llornkcor> | 2002-09-27 20:19:09 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-27 20:19:09 (UTC) |
commit | d7bcdda1857ff31830705921d8248200d881cf93 (patch) (side-by-side diff) | |
tree | fe75820a9ffa1e2340e4dcb02ffafed36a585a46 /noncore/applets/notesapplet/notes.cpp | |
parent | f9712865139ba9831ef188d4e00d1b75dda4f261 (diff) | |
download | opie-d7bcdda1857ff31830705921d8248200d881cf93.zip opie-d7bcdda1857ff31830705921d8248200d881cf93.tar.gz opie-d7bcdda1857ff31830705921d8248200d881cf93.tar.bz2 |
save makes new
Diffstat (limited to 'noncore/applets/notesapplet/notes.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/notesapplet/notes.cpp | 4 |
1 files changed, 1 insertions, 3 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,29 +135,27 @@ NotesControl::NotesControl( QWidget *parent, const char *name ) connect(newButton, SIGNAL(clicked()), this, SLOT(slotNewButton())); connect(saveButton, SIGNAL(clicked()), this, SLOT(slotSaveButton())); connect(deleteButton, SIGNAL(clicked()), this, SLOT(slotDeleteButtonClicked())); populateBox(); load(); setCaption("Notes"); // parent->setFocus(); } void NotesControl::slotSaveButton() { - if(edited) { - save(); + slotNewButton(); populateBox(); } -} void NotesControl::slotDeleteButtonClicked() { switch ( QMessageBox::warning(this,tr("Delete?") ,tr("Do you really want to<BR><B> delete</B> this note ?") ,tr("Yes"),tr("No"),0,1,1) ) { case 0: slotDeleteButton(); break; }; } void NotesControl::slotDeleteButton() { |