From 31b4eefadd1e2ad84fe65152d3001d975b8cd326 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 10 Nov 2023 12:22:38 -0500 Subject: [PATCH] Move closeDialog signal from Loading to LoginStep This prevents errors because we try to connect to a non-existent signal if the step is anything but Loading. --- src/qml/Loading.qml | 2 -- src/qml/LoginStep.qml | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qml/Loading.qml b/src/qml/Loading.qml index 159f9e091..64f55ed8e 100644 --- a/src/qml/Loading.qml +++ b/src/qml/Loading.qml @@ -12,8 +12,6 @@ import org.kde.neochat LoginStep { id: root - signal closeDialog - FormCard.FormTextDelegate { text: i18n("Please wait. This might take a little while.") } diff --git a/src/qml/LoginStep.qml b/src/qml/LoginStep.qml index c3d883ade..28a44bf8f 100644 --- a/src/qml/LoginStep.qml +++ b/src/qml/LoginStep.qml @@ -28,4 +28,7 @@ ColumnLayout { /// Clears any error messages currently being shown signal clearError() + + /// Closes the login dialog + signal closeDialog() }