Permalink
Browse files

Wrap the prependItem code with an ifdef so it can be compiled when th…

…e patch is not applied
  • Loading branch information...
Benjamin C Meyer
Benjamin C Meyer committed Jun 22, 2009
1 parent f7e9c4b commit 36a4d5b9c83b57e9f076fdf71cd6a6577b31d6a8
Showing with 4 additions and 0 deletions.
  1. +4 −0 llmozlib2/llembeddedbrowserwindow.cpp
@@ -66,6 +66,8 @@
#include <qdebug.h>
#endif
+#define WEBHISTORYPATCH
+
LLEmbeddedBrowserWindow::LLEmbeddedBrowserWindow()
{
d = new LLEmbeddedBrowserWindowPrivate();
@@ -589,11 +591,13 @@ std::string LLEmbeddedBrowserWindow::getNoFollowScheme()
void LLEmbeddedBrowserWindow::prependHistoryUrl(std::string url)
{
+#ifdef WEBHISTORYPATCH
// *HACK: we only have a URL here, we set a "" title and "current time" as
// last visited time.
d->mPage->history()->prependItem(QString::fromStdString(url),
QString::fromAscii(""),
QDateTime::currentDateTime());
+#endif
}
void LLEmbeddedBrowserWindow::clearHistory()

0 comments on commit 36a4d5b

Please sign in to comment.