[gnote] Can now delete several notes in the list at once. (Closes #587350)
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnote] Can now delete several notes in the list at once. (Closes #587350)
- Date: Tue, 30 Jun 2009 08:04:54 +0000 (UTC)
commit 089e7fb3dfe8c96d0cd9936f52e0a3238120e098
Author: Hubert Figuiere <hub figuiere net>
Date: Tue Jun 30 03:57:02 2009 -0400
Can now delete several notes in the list at once. (Closes #587350)
src/recentchanges.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index c4aa77c..de072a9 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -1005,8 +1005,9 @@ namespace gnote {
void NoteRecentChanges::on_delete_note()
{
Note::List selected_notes = get_selected_notes ();
- if (selected_notes.size() != 1)
+ if (selected_notes.empty()) {
return;
+ }
noteutils::show_deletion_dialog(selected_notes, this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]