diff options
author | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-07-08 15:58:57 +0200 |
---|---|---|
committer | Daniel Teichmann <daniel.teichmann@das-netzwerkteam.de> | 2021-07-08 15:58:57 +0200 |
commit | 6072a403da8e0743dfc42d62d89a09724650ebfa (patch) | |
tree | f69cddd049a085496b3c26df72b94e909f887b71 | |
parent | 5be60cd11d0d9dbde8ca67f0ec88e10540c490db (diff) | |
download | RWA.Support.DesktopApp-6072a403da8e0743dfc42d62d89a09724650ebfa.tar.gz RWA.Support.DesktopApp-6072a403da8e0743dfc42d62d89a09724650ebfa.tar.bz2 RWA.Support.DesktopApp-6072a403da8e0743dfc42d62d89a09724650ebfa.zip |
Add_server_wizard: Add new type-error messages
-rw-r--r-- | src/main_qmladaptor.cpp | 2 | ||||
-rw-r--r-- | src/scenes/add_server_wizard/add_server_wizard.cpp | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main_qmladaptor.cpp b/src/main_qmladaptor.cpp index 6684d13..c321ec8 100644 --- a/src/main_qmladaptor.cpp +++ b/src/main_qmladaptor.cpp @@ -175,7 +175,7 @@ void MainQMLAdaptor::main_content_replace(QString scene) { bool MainQMLAdaptor::setConnectButtonEnabled(bool enabled) { // Find item via 'objectName' - QQuickItem *scene_remote_control = _engine->rootObjects().at(0)->findChild<QQuickItem*>("Scene_remote_control"); + QQuickItem *scene_remote_control = _engine->rootObjects().takeFirst()->findChild<QQuickItem*>("Scene_remote_control"); QQuickItem *item = scene_remote_control->findChild<QQuickItem*>("start_support_button"); if (item) { item->setProperty("enabled", enabled); diff --git a/src/scenes/add_server_wizard/add_server_wizard.cpp b/src/scenes/add_server_wizard/add_server_wizard.cpp index a5bee47..e398b19 100644 --- a/src/scenes/add_server_wizard/add_server_wizard.cpp +++ b/src/scenes/add_server_wizard/add_server_wizard.cpp @@ -92,6 +92,12 @@ void Add_Server_wizard::add_web_app_host_response(QJsonDocument *doc) { } else if (type == "invalid_url") { reason = tr("The specified host address is not valid!"); qCritical().noquote() << reason; + } else if (type == "permission_denied") { + reason = tr("The specified host address does not grant access!"); + qCritical().noquote() << reason; + } else if (type == "unsupported_server") { + reason = tr("The specified host address is not supported!"); + qCritical().noquote() << reason; } emit step1Failed(reason); |