[network/ruqola] src/widgets/dialogs: Fix warnings

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 245d946975651fde3d1f100d7f8349fb2979ddfe by Laurent Montel.
Committed on 18/07/2026 at 20:26.
Pushed by mlaurent into branch 'master'.

Fix warnings

M  +8    -8    src/widgets/dialogs/directchannelinfowidget.cpp

https://invent.kde.org/network/ruqola/-/commit/245d946975651fde3d1f100d7f8349fb2979ddfe

diff --git a/src/widgets/dialogs/directchannelinfowidget.cpp b/src/widgets/dialogs/directchannelinfowidget.cpp
index ef4a7aba0a..e0d48fe438 100644
--- a/src/widgets/dialogs/directchannelinfowidget.cpp
+++ b/src/widgets/dialogs/directchannelinfowidget.cpp
@@ -122,17 +122,17 @@ void DirectChannelInfoWidget::setUser(const User &user)
     if (!statusText.isEmpty()) {
         auto customStatusLabel = new QLabel(statusText, this);
         customStatusLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
-        auto label = new QLabel(i18n("Custom Status:"), this);
-        label->setFont(f);
-        mFormLayout->addRow(label, customStatusLabel);
+        auto customStatuslabel = new QLabel(i18n("Custom Status:"), this);
+        customStatuslabel->setFont(f);
+        mFormLayout->addRow(customStatuslabel, customStatusLabel);
     }
 
     if (!user.bio().isEmpty()) {
-        auto bioLabel = new QLabel(user.bio(), this);
-        bioLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
-        auto label = new QLabel(i18n("Bio:"), this);
-        label->setFont(f);
-        mFormLayout->addRow(label, bioLabel);
+        auto bioUserLabel = new QLabel(user.bio(), this);
+        bioUserLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
+        auto bioLabel = new QLabel(i18n("Bio:"), this);
+        bioLabel->setFont(f);
+        mFormLayout->addRow(bioLabel, bioUserLabel);
     }
 
     auto timeZoneLabel = new QLabel(this);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.