Showing the changes to interface/src/ui/AddressBarDialog.cpp (1 of 3 files). Show all
Unified · Split
| @@ -10,6 +10,7 @@ · 9 unmodified lines | |||
| 10 | // | 10 | // |
| 11 | 11 | ||
| 12 | #include "AddressBarDialog.h" | 12 | #include "AddressBarDialog.h" |
| 13 | #include "Application.h" | ||
| 13 | 14 | ||
| 14 | #include <QMessageBox> | 15 | #include <QMessageBox> |
| 15 | 16 | ||
| @@ -52,7 +53,12 @@ void AddressBarDialog::loadAddress(const QString& address) { · 36 unmodified lines | |||
| 52 | 53 | ||
| 53 | void AddressBarDialog::loadHome() { | 54 | void AddressBarDialog::loadHome() { |
| 54 | qDebug() << "Called LoadHome"; | 55 | qDebug() << "Called LoadHome"; |
| 55 | // TODO | 56 | QString homeLocation = qApp->getBookmarks()->addressForBookmark(Bookmarks::HOME_BOOKMARK); |
| 57 | const QString DEFAULT_HOME_LOCATION = "localhost"; | ||
| 58 | if (homeLocation == "") { | ||
| 59 | homeLocation = DEFAULT_HOME_LOCATION; | ||
| 60 | } | ||
| 61 | DependencyManager::get<AddressManager>()->handleLookupString(homeLocation); | ||
| 56 | } | 62 | } |
| 57 | 63 | ||
| 58 | void AddressBarDialog::loadBack() { | 64 | void AddressBarDialog::loadBack() { |