From 37336fcee2dafa990be6a177a152efefd3d0fef6 Mon Sep 17 00:00:00 2001 From: Olavi Pulkkinen Date: Tue, 30 Mar 2010 11:48:13 +0300 Subject: [PATCH] Added check to enable send button in routedialog. --- Client/routedialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Client/routedialog.cpp b/Client/routedialog.cpp index 2130e75..5a680aa 100644 --- a/Client/routedialog.cpp +++ b/Client/routedialog.cpp @@ -8,6 +8,7 @@ #include "routedialog.h" #include "ui_routedialog.h" +#include "usersettings.h" #include #include #include @@ -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() -- 1.7.9.5