[glom] show_help(): Actually use the ID.



commit 264e6ce5102b6bd9f3e734ba713714687a87ac3a
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 8 09:19:06 2016 +0100

    show_help(): Actually use the ID.
    
    See bug #763250
    
    However, see yelp bug #763294 .

 glom/utils_ui.cc |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/glom/utils_ui.cc b/glom/utils_ui.cc
index b307867..5913bec 100644
--- a/glom/utils_ui.cc
+++ b/glom/utils_ui.cc
@@ -121,7 +121,7 @@ void UiUtils::show_help(Gtk::Window* parent_window, const Glib::ustring& id)
   //TODO: Check that this actually works for any dialog that has an ID in the help files.
   Glib::ustring uri = "help:glom";
   if (!id.empty())
-    uri + "/" + id;
+    uri += "/" + id;
     
   try
   {
@@ -131,7 +131,6 @@ void UiUtils::show_help(Gtk::Window* parent_window, const Glib::ustring& id)
     if(parent_window)
       screen = parent_window->get_screen();
 
-    std::cout << "debug: opening URI:" << uri << std::endl;
     if(!gtk_show_uri(screen ? screen->gobj() : nullptr,
       uri.c_str(), GDK_CURRENT_TIME, &gerror))
     {


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