summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 14:55:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 20:06:07 +0300
commit9d521a19be347703bfdbb7802d0397a59c3edd7a (patch)
tree9a4e56edc84d5cfd8ebaea17fa19296c51e1e661 /src/gui/windows/logindialog.cpp
parent841fe55e67ea467a8e2192dee5c169d282a35148 (diff)
downloadplus-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.gz
plus-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.bz2
plus-9d521a19be347703bfdbb7802d0397a59c3edd7a.tar.xz
plus-9d521a19be347703bfdbb7802d0397a59c3edd7a.zip
Add missing checks in windows.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index c783abed8..47e86471e 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -57,14 +57,14 @@ namespace
OpenUrlListener urlListener;
} // namespace
-LoginDialog::LoginDialog(LoginData *const data,
+LoginDialog::LoginDialog(LoginData &data,
std::string serverName,
std::string *const updateHost) :
// TRANSLATORS: login dialog name
Window(_("Login"), Modal_false, nullptr, "login.xml"),
ActionListener(),
KeyListener(),
- mLoginData(data),
+ mLoginData(&data),
mUserField(new TextField(this, mLoginData->username)),
mPassField(new PasswordField(this, mLoginData->password)),
// TRANSLATORS: login dialog label
@@ -104,7 +104,7 @@ LoginDialog::LoginDialog(LoginData *const data,
Label *const userLabel = new Label(this, _("Name:"));
// TRANSLATORS: login dialog label
Label *const passLabel = new Label(this, _("Password:"));
- if (mLoginData && mLoginData->updateHosts.size() > 1)
+ if (mLoginData->updateHosts.size() > 1)
{
// TRANSLATORS: login dialog label
mUpdateHostLabel = new Label(this, strprintf(_("Update host: %s"),