projects
/
ptas
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes: gps controller uses labels for fake gps
[ptas]
/
zouba
/
src
/
ui.cpp
diff --git
a/zouba/src/ui.cpp
b/zouba/src/ui.cpp
index
7b7c3e8
..
aea68b6
100644
(file)
--- a/
zouba/src/ui.cpp
+++ b/
zouba/src/ui.cpp
@@
-27,13
+27,8
@@
Ui::Ui() :
routeTable(0),
usingFakeGps( false ),
messagesShown( false ),
routeTable(0),
usingFakeGps( false ),
messagesShown( false ),
- fakeLocation()
+ fakeLocationLabel( "work" )
{
{
- Locations *locations = Locations::instance();
- Location *workLocation = locations->location( "work" );
- fakeLocation = new Location();
- *fakeLocation = *workLocation;
- fakeLocation->setLabel( "fakegps" );
}
Ui::~Ui()
}
Ui::~Ui()
@@
-161,7
+156,7
@@
void Ui::toggleFakeGps()
void Ui::useFakeGps()
{
void Ui::useFakeGps()
{
- emit fakeGpsPressed( fakeLocation );
+ emit fakeGpsPressed( fakeLocationLabel );
toggleFakeGpsAction->setText( "Use Live GPS" );
}
toggleFakeGpsAction->setText( "Use Live GPS" );
}