diff options
author | Tobias Markmann <tm@ayena.de> | 2017-04-12 09:05:33 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2017-04-12 09:05:33 (GMT) |
commit | 4024517891d3a222e71e6632c3609fcda08c875e (patch) | |
tree | 690020d1a9c1a4c3fd8bff0f59d196ee23b05d60 /Swift/QtUI/UserSearch/QtUserSearchFirstMultiJIDPage.cpp | |
parent | 43b85e93c7acd865be2de009651e146e9faece96 (diff) | |
download | swift-4024517891d3a222e71e6632c3609fcda08c875e.zip swift-4024517891d3a222e71e6632c3609fcda08c875e.tar.bz2 |
Assert first page in QtUserSearchWindow wizard based on type
Converted enum to C++11 enum class in process.
Coverity raised this issue.
Test-Information:
All unit tests pass. Using the “Add Contact…” and “Start Chat…”
dialogs did not crash.
Tested on macOS 10.12.4 with Qt 5.4.2.
Change-Id: I0409688b001d1eaaf5fa77a25b1158ce9e611c77
Diffstat (limited to 'Swift/QtUI/UserSearch/QtUserSearchFirstMultiJIDPage.cpp')
-rw-r--r-- | Swift/QtUI/UserSearch/QtUserSearchFirstMultiJIDPage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/QtUI/UserSearch/QtUserSearchFirstMultiJIDPage.cpp b/Swift/QtUI/UserSearch/QtUserSearchFirstMultiJIDPage.cpp index 1327a8f..8656db7 100644 --- a/Swift/QtUI/UserSearch/QtUserSearchFirstMultiJIDPage.cpp +++ b/Swift/QtUI/UserSearch/QtUserSearchFirstMultiJIDPage.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2014-2016 Isode Limited. + * Copyright (c) 2014-2017 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ @@ -29,13 +29,13 @@ QtUserSearchFirstMultiJIDPage::QtUserSearchFirstMultiJIDPage(UserSearchWindow::T setTitle(title); QString introText = ""; switch (type) { - case UserSearchWindow::AddContact: + case UserSearchWindow::Type::AddContact: introText = tr("Add another user to your contact list"); break; - case UserSearchWindow::ChatToContact: + case UserSearchWindow::Type::ChatToContact: introText = tr("Chat to another user"); break; - case UserSearchWindow::InviteToChat: + case UserSearchWindow::Type::InviteToChat: introText = tr("Invite contact to chat"); break; } |