History

Add getHomeLocationAddress to bookmark API

Ryan Huffman committed 7 years ago

Commit 344410e1 parent 022aae62 files · +12 −1Browse files

Showing the changes to interface/src/LocationBookmarks.cpp (1 of 2 files). Show all

Unified · Split

interface/src/LocationBookmarks.cpp+6−1
@@ -59,7 +59,12 @@ void LocationBookmarks::setHomeLocation() { · 58 unmodified lines
5959 }
6060
6161 void LocationBookmarks::setHomeLocationToAddress(const QVariant& address) {
62− Bookmarks::insert("Home", address);
62+ Bookmarks::insert(HOME_BOOKMARK, address);
63+}
64+
65+
66+QString LocationBookmarks::getHomeLocationAddress() {
67+ return addressForBookmark(HOME_BOOKMARK);
6368 }
6469
6570 void LocationBookmarks::teleportToBookmark() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t