projects
/
speedfreak
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d30e81d
)
Added check to enable send button in routedialog.
author
Olavi Pulkkinen
<olavi.pulkkinen@fudeco.com>
Tue, 30 Mar 2010 08:48:13 +0000
(11:48 +0300)
committer
Olavi Pulkkinen
<olavi.pulkkinen@fudeco.com>
Tue, 30 Mar 2010 08:48:13 +0000
(11:48 +0300)
Client/routedialog.cpp
patch
|
blob
|
history
diff --git
a/Client/routedialog.cpp
b/Client/routedialog.cpp
index
2130e75
..
5a680aa
100644
(file)
--- a/
Client/routedialog.cpp
+++ b/
Client/routedialog.cpp
@@
-8,6
+8,7
@@
#include "routedialog.h"
#include "ui_routedialog.h"
+#include "usersettings.h"
#include <cmath>
#include <QPainter>
#include <QList>
@@
-169,6
+170,13
@@
RouteDialog::RouteDialog(QWidget *parent) :
ui->setupUi(this);
this->setWindowTitle("Route");
left = 5; top = 5; right = 495; bottom = 295; // Limits in screen coordinates
+
+ // Send rout to server button disable/enable.
+ ui->sendPushButton->setEnabled(false);
+ if (loginSaved())
+ {
+ ui->sendPushButton->setEnabled(true);
+ }
}
RouteDialog::~RouteDialog()