From 59377e49e550e0a315028646ed907c00f35161a1 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sun, 11 Oct 2015 02:05:49 -0400 Subject: [PATCH] fix 'Prev' button placement --- src/client/Client.cpp | 1 + src/gui/localbrowser/LocalBrowserView.cpp | 2 +- src/gui/search/SearchView.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 1b72f9c24..5a8f050f3 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -680,6 +680,7 @@ std::vector > Client::GetServerNotifications RequestStatus Client::ParseServerReturn(char *result, int status, bool json) { + lastError = ""; // no server response, return "Malformed Response" if (status == 200 && !result) { diff --git a/src/gui/localbrowser/LocalBrowserView.cpp b/src/gui/localbrowser/LocalBrowserView.cpp index a8936ac00..0f3089f84 100644 --- a/src/gui/localbrowser/LocalBrowserView.cpp +++ b/src/gui/localbrowser/LocalBrowserView.cpp @@ -22,7 +22,7 @@ LocalBrowserView::LocalBrowserView(): pageCount(0) { nextButton = new ui::Button(ui::Point(WINDOWW-52, WINDOWH-18), ui::Point(50, 16), "Next \x95"); - previousButton = new ui::Button(ui::Point(1, WINDOWH-18), ui::Point(50, 16), "\x96 Prev"); + previousButton = new ui::Button(ui::Point(2, WINDOWH-18), ui::Point(50, 16), "\x96 Prev"); undeleteButton = new ui::Button(ui::Point(WINDOWW-122, WINDOWH-18), ui::Point(60, 16), "Rescan"); AddComponent(nextButton); AddComponent(previousButton); diff --git a/src/gui/search/SearchView.cpp b/src/gui/search/SearchView.cpp index edb4c7eda..74a3a14c7 100644 --- a/src/gui/search/SearchView.cpp +++ b/src/gui/search/SearchView.cpp @@ -26,7 +26,7 @@ SearchView::SearchView(): Client::Ref().AddListener(this); nextButton = new ui::Button(ui::Point(WINDOWW-52, WINDOWH-18), ui::Point(50, 16), "Next \x95"); - previousButton = new ui::Button(ui::Point(1, WINDOWH-18), ui::Point(50, 16), "\x96 Prev"); + previousButton = new ui::Button(ui::Point(2, WINDOWH-18), ui::Point(50, 16), "\x96 Prev"); tagsLabel = new ui::Label(ui::Point(270, WINDOWH-18), ui::Point(WINDOWW-540, 16), "\boPopular Tags:"); motdLabel = new ui::RichLabel(ui::Point(51, WINDOWH-18), ui::Point(WINDOWW-102, 16), Client::Ref().GetMessageOfTheDay());