aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-10-02 19:17:00 -0700
committerGuy Harris <gharris@sonic.net>2020-10-02 20:13:42 -0700
commite013c5ec7f175f4e12f20f201d639e64609960de (patch)
tree4eab00bd869dc44e1898e228d5fdcc42db2d8417 /file.c
parent22e7ddb63789ff603641be116ee24834ca7631f9 (diff)
Clean up URLs.
Add ui/urls.h to define some URLs on various of our websites. Use the GitLab URL for the wiki. Add a macro to generate wiki URLs. Update wiki URLs in comments etc. Use the #defined URL for the docs page in WelcomePage::on_helpLabel_clicked; that removes the last user of topic_online_url(), so get rid of it and swallow it up into topic_action_url().
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index 7749827da8..449f336ed1 100644
--- a/file.c
+++ b/file.c
@@ -52,6 +52,7 @@
#include "ui/simple_dialog.h"
#include "ui/main_statusbar.h"
#include "ui/progress_dlg.h"
+#include "ui/urls.h"
#include "ui/ws_ui_util.h"
/* Needed for addrinfo */
@@ -634,7 +635,7 @@ cf_read(capture_file *cf, gboolean reloading)
CATCH(OutOfMemoryError) {
simple_message_box(ESD_TYPE_ERROR, NULL,
"More information and workarounds can be found at\n"
- "https://wiki.wireshark.org/KnownBugs/OutOfMemory",
+ WS_WIKI_URL("KnownBugs/OutOfMemory"),
"Sorry, but Wireshark has run out of memory and has to terminate now.");
#if 0
/* Could we close the current capture and free up memory from that? */
@@ -812,7 +813,7 @@ cf_continue_tail(capture_file *cf, volatile int to_read, wtap_rec *rec,
CATCH(OutOfMemoryError) {
simple_message_box(ESD_TYPE_ERROR, NULL,
"More information and workarounds can be found at\n"
- "https://wiki.wireshark.org/KnownBugs/OutOfMemory",
+ WS_WIKI_URL("KnownBugs/OutOfMemory"),
"Sorry, but Wireshark has run out of memory and has to terminate now.");
#if 0
/* Could we close the current capture and free up memory from that? */