[gnote] Use correct section in tableofcontents



commit 7dd5f8d3b6edeb5712d6e7018171fd7acb97f145
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Mar 31 18:39:54 2019 +0300

    Use correct section in tableofcontents

 src/addins/tableofcontents/tableofcontentsnoteaddin.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/addins/tableofcontents/tableofcontentsnoteaddin.cpp 
b/src/addins/tableofcontents/tableofcontentsnoteaddin.cpp
index 51640b4a..75b38811 100644
--- a/src/addins/tableofcontents/tableofcontentsnoteaddin.cpp
+++ b/src/addins/tableofcontents/tableofcontentsnoteaddin.cpp
@@ -128,7 +128,7 @@ std::vector<gnote::PopoverWidget> TableofcontentsNoteAddin::get_actions_popover_
 {
   auto widgets = NoteAddin::get_actions_popover_widgets();
   auto toc_item = gnote::utils::create_popover_submenu_button("tableofcontents-menu", _("Table of 
Contents"));
-  widgets.push_back(gnote::PopoverWidget::create_for_note(gnote::TABLE_OF_CONTENTS_ORDER, toc_item));
+  widgets.push_back(gnote::PopoverWidget(gnote::NOTE_SECTION_CUSTOM_SECTIONS, 
gnote::TABLE_OF_CONTENTS_ORDER, toc_item));
   auto toc_menu = gnote::utils::create_popover_submenu("tableofcontents-menu");
   widgets.push_back(gnote::PopoverWidget::create_custom_section(toc_menu));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]