diff options
author | Joan Josep <juanjo.ng.83@gmail.com> | 2019-02-17 00:15:58 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-02-16 23:15:58 +0000 |
commit | 548ec05a48ba28b65e779fa27fa5985a4ee2901b (patch) | |
tree | 518372f8dba71cc9caf79f2d5974a917ceb2802f /src/toolbar_gui.cpp | |
parent | ebe84b9d4c747d516fd779c711788da5d4dcd1d0 (diff) | |
download | openttd-548ec05a48ba28b65e779fa27fa5985a4ee2901b.tar.xz |
Add: News menu entry and shortcut for deleting all messages. (#7240)
Diffstat (limited to 'src/toolbar_gui.cpp')
-rw-r--r-- | src/toolbar_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp index a5bccd41f..9b84268ef 100644 --- a/src/toolbar_gui.cpp +++ b/src/toolbar_gui.cpp @@ -1023,7 +1023,7 @@ static CallBackFunction MenuClickMusicWindow(int index) static CallBackFunction ToolbarNewspaperClick(Window *w) { - PopupMainToolbMenu(w, WID_TN_MESSAGES, STR_NEWS_MENU_LAST_MESSAGE_NEWS_REPORT, 2); + PopupMainToolbMenu(w, WID_TN_MESSAGES, STR_NEWS_MENU_LAST_MESSAGE_NEWS_REPORT, 3); return CBF_NONE; } @@ -1038,6 +1038,7 @@ static CallBackFunction MenuClickNewspaper(int index) switch (index) { case 0: ShowLastNewsMessage(); break; case 1: ShowMessageHistory(); break; + case 2: DeleteAllMessages(); break; } return CBF_NONE; } |