summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.c1
-rw-r--r--src/ui/sidebarwidget.c3
-rw-r--r--src/ui/window.c3
3 files changed, 6 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index da106141..64ea9ad1 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1015,7 +1015,6 @@ iBool handleCommand_App(const char *cmd) {
1015 add_History(history, url); 1015 add_History(history, url);
1016 } 1016 }
1017 } 1017 }
1018 visitUrl_Visited(d->visited, url);
1019 setInitialScroll_DocumentWidget(doc, argfLabel_Command(cmd, "scroll")); 1018 setInitialScroll_DocumentWidget(doc, argfLabel_Command(cmd, "scroll"));
1020 setRedirectCount_DocumentWidget(doc, redirectCount); 1019 setRedirectCount_DocumentWidget(doc, redirectCount);
1021 setUrlFromCache_DocumentWidget(doc, url, isHistory); 1020 setUrlFromCache_DocumentWidget(doc, url, isHistory);
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index d140948e..d311ca92 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -559,6 +559,9 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
559 } 559 }
560 return iTrue; 560 return iTrue;
561 } 561 }
562 else if (equal_Command(cmd, "visited.changed") && d->mode == history_SidebarMode) {
563 updateItems_SidebarWidget_(d);
564 }
562 else if (equal_Command(cmd, "bookmarks.changed") && d->mode == bookmarks_SidebarMode) { 565 else if (equal_Command(cmd, "bookmarks.changed") && d->mode == bookmarks_SidebarMode) {
563 updateItems_SidebarWidget_(d); 566 updateItems_SidebarWidget_(d);
564 } 567 }
diff --git a/src/ui/window.c b/src/ui/window.c
index 105dcfb3..fe731ecf 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -36,6 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
36#include "../visited.h" 36#include "../visited.h"
37#include "../gmcerts.h" 37#include "../gmcerts.h"
38#include "../gmutil.h" 38#include "../gmutil.h"
39#include "../visited.h"
39#if defined (iPlatformMsys) 40#if defined (iPlatformMsys)
40# include "../win32.h" 41# include "../win32.h"
41#endif 42#endif
@@ -251,6 +252,8 @@ static iBool handleNavBarCommands_(iWidget *navBar, const char *cmd) {
251 if (equal_Command(cmd, "document.changed")) { 252 if (equal_Command(cmd, "document.changed")) {
252 iInputWidget *url = findWidget_App("url"); 253 iInputWidget *url = findWidget_App("url");
253 const iString *urlStr = collect_String(suffix_Command(cmd, "url")); 254 const iString *urlStr = collect_String(suffix_Command(cmd, "url"));
255 visitUrl_Visited(visited_App(), urlStr);
256 postCommand_App("visited.changed"); /* sidebar will update */
254 setText_InputWidget(url, urlStr); 257 setText_InputWidget(url, urlStr);
255 updateTextCStr_LabelWidget(reloadButton, reloadCStr_); 258 updateTextCStr_LabelWidget(reloadButton, reloadCStr_);
256 updateNavBarIdentity_(navBar); 259 updateNavBarIdentity_(navBar);