[gnote] Allow to delete notebook template note
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Allow to delete notebook template note
- Date: Thu, 28 Oct 2010 19:25:21 +0000 (UTC)
commit 437eb681f768b6a01d5212c8d05b3929dcaefc74
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Thu Oct 28 22:22:47 2010 +0300
Allow to delete notebook template note
Let delete notebook template note, just as default template note.
Fixes 627419.
src/notebooks/notebooknoteaddin.cpp | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/notebooks/notebooknoteaddin.cpp b/src/notebooks/notebooknoteaddin.cpp
index c22e446..f73df43 100644
--- a/src/notebooks/notebooknoteaddin.cpp
+++ b/src/notebooks/notebooknoteaddin.cpp
@@ -116,11 +116,6 @@ namespace notebooks {
Tag::Ptr templateTag = TagManager::obj().get_or_create_system_tag (TagManager::TEMPLATE_NOTE_SYSTEM_TAG);
if (get_note()->contains_tag (templateTag)) {
m_toolButton->set_sensitive(false);
-
- // Also prevent notebook templates from being deleted
- if (NotebookManager::instance().get_notebook_from_note (get_note())) {
- get_note()->get_window()->delete_button()->set_sensitive(false);
- }
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]