[utilities/kaichat] src/widgets: Remove unused mReallyClose + remove not necessary slotClose

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 03ca6422fcca29022d489a687d5115f4a618e9f0 by Laurent Montel.
Committed on 14/08/2026 at 05:28.
Pushed by mlaurent into branch 'master'.

Remove unused mReallyClose + remove not necessary slotClose

M  +1    -7    src/widgets/kaichatmainwindow.cpp
M  +0    -2    src/widgets/kaichatmainwindow.h

https://invent.kde.org/utilities/kaichat/-/commit/03ca6422fcca29022d489a687d5115f4a618e9f0

diff --git a/src/widgets/kaichatmainwindow.cpp b/src/widgets/kaichatmainwindow.cpp
index b8426e1..58e46f4 100644
--- a/src/widgets/kaichatmainwindow.cpp
+++ b/src/widgets/kaichatmainwindow.cpp
@@ -162,7 +162,7 @@ void KAIChatMainWindow::setupActions()
     auto manager = KColorSchemeManager::instance();
     ac->addAction(u"colorscheme_menu"_s, KColorSchemeMenu::createMenu(manager, this));
 
-    KStandardActions::quit(this, &KAIChatMainWindow::slotClose, ac);
+    KStandardActions::quit(this, &KAIChatMainWindow::close, ac);
     KStandardActions::preferences(this, &KAIChatMainWindow::slotConfigure, ac);
 
     KStandardActions::configureNotifications(this, &KAIChatMainWindow::slotConfigureNotifications, ac);
@@ -251,12 +251,6 @@ void KAIChatMainWindow::updateHamburgerMenu()
     mHamburgerMenu->setMenu(menu);
 }
 
-void KAIChatMainWindow::slotClose()
-{
-    mReallyClose = true;
-    close();
-}
-
 void KAIChatMainWindow::slotFullScreen(bool t)
 {
     KToggleFullScreenAction::setFullScreen(this, t);
diff --git a/src/widgets/kaichatmainwindow.h b/src/widgets/kaichatmainwindow.h
index 9c3b969..eba1bd5 100644
--- a/src/widgets/kaichatmainwindow.h
+++ b/src/widgets/kaichatmainwindow.h
@@ -47,7 +47,6 @@ private:
     LIBKAICHATWIDGETS_NO_EXPORT void slotImportDone(const QString &title, const QList<TextAutoGenerateText::TextAutoGenerateMessage> &msgs);
     LIBKAICHATWIDGETS_NO_EXPORT void slotShowArchive(bool checked);
     LIBKAICHATWIDGETS_NO_EXPORT void setupActions();
-    LIBKAICHATWIDGETS_NO_EXPORT void slotClose();
     LIBKAICHATWIDGETS_NO_EXPORT void slotConfigure();
     LIBKAICHATWIDGETS_NO_EXPORT void slotToggleMenubar(bool dontShowWarning);
     LIBKAICHATWIDGETS_NO_EXPORT void updateHamburgerMenu();
@@ -66,7 +65,6 @@ private:
     LIBKAICHATWIDGETS_NO_EXPORT void slotImportInfoRequested();
     LIBKAICHATWIDGETS_NO_EXPORT void slotShowDatabaseMessages();
     LIBKAICHATWIDGETS_NO_EXPORT void slotExportDone(const QString &fileName);
-    bool mReallyClose{false};
     KToggleAction *mShowMenuBarAction = nullptr;
     KHamburgerMenu *mHamburgerMenu = nullptr;
     KToggleFullScreenAction *mShowFullScreenAction = nullptr;
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.