aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/menu.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/menu.cc b/src/menu.cc
index d89c9ee1..37f84c5e 100644
--- a/src/menu.cc
+++ b/src/menu.cc
@@ -373,9 +373,6 @@ void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url,
memset(stylesheets, '\0', sizeof(Fl_Menu_Item[cssUrls->size() + 1]));
for (j = 0; j < cssUrls->size(); j++) {
-
- /* may want ability to Load individual unloaded stylesheets as well */
- const char *action = "View ";
DilloUrl *url = cssUrls->get(j);
const char *url_str = URL_STR(url);
const uint_t head_length = 30, tail_length = 40,
@@ -386,10 +383,10 @@ void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url,
/* trim long URLs when making the label */
char *url_head = dStrndup(url_str, head_length);
const char *url_tail = url_str + (url_len - tail_length);
- label = dStrconcat(action, url_head, "...", url_tail, NULL);
+ label = dStrconcat(url_head, "...", url_tail, NULL);
dFree(url_head);
} else {
- label = dStrconcat(action, url_str, NULL);
+ label = dStrdup(url_str);
}
stylesheets[j].label(FL_NORMAL_LABEL, label);